shukdevdatta123 commited on
Commit
666cd48
·
verified ·
1 Parent(s): a861aa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -2,6 +2,14 @@ import streamlit as st
2
  from kokoro import KPipeline
3
  import soundfile as sf
4
  import io
 
 
 
 
 
 
 
 
5
 
6
  # Streamlit App UI Setup
7
  st.title("Text-to-Speech with Kokoro")
 
2
  from kokoro import KPipeline
3
  import soundfile as sf
4
  import io
5
+ import os
6
+
7
+ # Install espeak-ng if not installed
8
+ if not os.system("which espeak-ng"):
9
+ st.text("espeak-ng already installed.")
10
+ else:
11
+ os.system("apt-get -qq -y install espeak-ng")
12
+ st.text("Installing espeak-ng...")
13
 
14
  # Streamlit App UI Setup
15
  st.title("Text-to-Speech with Kokoro")