auralodyssey commited on
Commit
ced2dc7
·
verified ·
1 Parent(s): 4d29cb7

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +9 -11
  2. postBuild +18 -0
  3. requirements.txt +9 -0
README.md CHANGED
@@ -1,12 +1,10 @@
1
- ---
2
- title: Api
3
- emoji: 📊
4
- colorFrom: green
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 6.2.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
1
+ # Kokoro TTS CPU Space
 
 
 
 
 
 
 
 
 
2
 
3
+ Upload these files into your Hugging Face Space along with your `app.py`.
4
+
5
+ ## Files included
6
+ - requirements.txt
7
+ - postBuild
8
+ - README.md
9
+
10
+ Make sure your Space hardware is set to `CPU Basic`.
postBuild ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ apt-get update -y
5
+ apt-get install -y build-essential gawk libasound2-dev libpulse-dev autoconf automake libtool wget
6
+
7
+ if ! command -v espeak-ng >/dev/null 2>&1; then
8
+ wget -q https://github.com/espeak-ng/espeak-ng/archive/refs/tags/1.52.0.tar.gz -O /tmp/espeak-ng.tar.gz
9
+ pushd /tmp
10
+ tar xf espeak-ng.tar.gz
11
+ cd espeak-ng-1.52.0
12
+ ./autogen.sh
13
+ ./configure
14
+ make -j2
15
+ make install
16
+ ldconfig
17
+ popd
18
+ fi
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ gradio
2
+ huggingface_hub
3
+ onnxruntime
4
+ numpy
5
+ scipy
6
+ misaki[en]
7
+ phonemizer
8
+ soundfile
9
+ gradio_client