Skip to content

Commit 00df423

Browse files
committed
r1.0 branch
1 parent 8b1657c commit 00df423

File tree

35 files changed

+77
-108
lines changed

35 files changed

+77
-108
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,6 @@ cython_debug/
231231
# <<<< Python <<<<
232232

233233
/**/*.pbmm
234+
/**/*.tflite
234235
/**/*.scorer
235236
/**/*.wav

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Coqui STT main branch Examples
2-
==============================
1+
Coqui STT 1.0.x Examples
2+
========================
33

44
These are various examples on how to use or integrate 🐸STT using our packages.
55

66
It is a good way to just try out 🐸STT before learning how it works in detail, as well as a source of inspiration for ways you can integrate it into your application or solve common tasks like voice activity detection (VAD) or microphone streaming.
77

88
Contributions are welcome!
99

10-
**Note:** These examples target 🐸STT **main branch** only. If you're using a different release, you need to go to the corresponding branch for the release:
10+
**Note:** These examples target 🐸STT **1.0.x** only. If you're using a different release, you need to go to the corresponding branch for the release:
1111

1212
* `v1.0.x <https://github.com/coqui-ai/STT-examples/tree/r1.0>`_
1313
* `v0.9.x <https://github.com/coqui-ai/STT-examples/tree/r0.9>`_

android_mic_streaming/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ Android demo application that streams audio from the microphone to STT and trans
66

77
#### Download model
88

9-
Download the pre-trained English model and extract it:
10-
```
11-
curl -LO https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.tflite
12-
curl -LO https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.scorer
13-
```
9+
Download a pre-trained model and scorer from the [Coqui Model Zoo](https://coqui.ai/models).
1410

15-
Move the model files `coqui-stt-0.9.3-models.pbmm`, `coqui-stt-0.9.3-models.scorer`, to the demo application's data directory on your android device.
11+
Move the model files (`.tflite`, `.scorer`), to the demo application's data directory on your android device.
1612
Mind that the data directory will only be present after installing and launching the app once.
1713

1814
```
19-
adb push coqui-stt-0.9.3-models.tflite coqui-stt-0.9.3-models.scorer /storage/emulated/0/Android/data/org.sttdemo/files/
15+
adb push model.tflite huge-vocab.scorer /storage/emulated/0/Android/data/org.sttdemo/files/
2016
```
2117

2218
You can also copy the files from your file browser to the device.

android_mic_streaming/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
implementation 'androidx.core:core-ktx:1.0.2'
3535
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3636

37-
implementation 'ai.coqui:libstt:0.9.3'
37+
implementation 'ai.coqui:libstt:1.0.0'
3838

3939
testImplementation 'junit:junit:4.12'
4040
androidTestImplementation 'androidx.test.ext:junit:1.1.0'

batch_processing/Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ Running via the GPU takes half the time of using the CPU and has good results.
128128

129129
# Driver command line
130130

131-
`./driver.py --model c:/Users/jmike/Documents/GitHub/STT/coqui-stt-0.9.3-models.pbmm --scorer c:/Users/jmike/Documents/GitHub/STT/coqui-stt-0.9.3-models.scorer --dirname c:/Users/jmike/Downloads/podcast/`
131+
`./driver.py --model model.tflite --scorer huge-vocab.scorer --dirname some_dir`
132132

133133
# Example
134134

135135
It will then run the individual commands like :
136136

137-
`stt --model C:\Users\jmike\Documents\GitHub\STT\coqui-stt-0.9.3-models.pbmm --scorer C:\Users\jmike\Documents\GitHub\STT\coqui-stt-0.9.3-models.scorer --audio 'C:\Users\jmike\Downloads\podcast\45374977-48000-2-24d9a365625bb.mp3.wav' --json`
137+
`stt --model model.tflite --scorer huge-vocab.scorer --audio audio.wav --json`
138138

139139

140140
Websites referenced:
@@ -154,4 +154,4 @@ https://hacks.mozilla.org/2019/12/coqui-stt-0-6-mozillas-speech-to-text-engine/
154154
https://palletsprojects.com/p/click/
155155
https://www.howtoforge.com/tutorial/ffmpeg-audio-conversion/
156156
https://www.joe0.com/2019/10/19/how-resolve-tensorflow-2-0-error-could-not-load-dynamic-library-cudart64_100-dll-dlerror-cudart64_100-dll-not-found/
157-
https://www.programcreek.com/python/example/88033/click.Path
157+
https://www.programcreek.com/python/example/88033/click.Path

batch_processing/driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
@click.option("--ext", default=".mp3")
2020
@click.option(
2121
"--model",
22-
default="coqui-stt-0.9.3-models.pbmm",
22+
default="model.tflite",
2323
type=click.Path(exists=True, resolve_path=True),
2424
)
2525
@click.option(
2626
"--scorer",
27-
default="coqui-stt-0.9.3-models.scorer",
27+
default="huge-vocab.scorer",
2828
type=click.Path(exists=True, resolve_path=True),
2929
)
3030

batch_processing/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cachetools==4.1.0
1010
certifi==2020.4.5.2
1111
chardet==3.0.4
1212
click==7.1.2
13-
STT==0.9.3
13+
STT==1.0.0
1414
delegator.py @ git+https://github.com/amitt001/delegator.py.git@194aa92543fbdbfbae0bcc24ca217819a7805da2
1515
flask==1.1.2
1616
gast==0.2.2

electron/Readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ npm run rebuild
1414
Download and extract audio files to `/public` directory
1515

1616
```
17-
wget https://github.com/coqui-ai/STT/releases/download/v0.9.3/audio-0.9.3.tar.gz
18-
tar xfvz audio-0.9.3.tar.gz -C ./public/
17+
wget https://github.com/coqui-ai/STT/releases/download/v1.0.0/audio-1.0.0.tar.gz
18+
tar xfvz audio-1.0.0.tar.gz -C ./public/
1919
```
2020

21-
(Optional) Download or softlink STT 0.9.3 model files to the root of the project:
21+
(Optional) Download a pre-trained model and scorer from the [Coqui Model Zoo](https://coqui.ai/models) to the root of the project:
2222

2323
```
2424
mkdir models
2525
cd models
26-
wget https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.pbmm
27-
wget https://github.com/coqui-ai/STT/releases/download/v0.9.3/coqui-stt-0.9.3-models.scorer
26+
mv $HOME/Downloads/model.tflite .
27+
mv $HOME/Downloads/huge-vocab.scorer .
2828
cd ..
2929
```
3030

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"keywords": [],
6767
"license": "MIT",
6868
"dependencies": {
69-
"STT": "^0.9.3",
69+
"STT": "^1.0.0",
7070
"electron-is-dev": "^1.1.0",
7171
"lodash": "^4.17.15",
7272
"node-abi": "^2.18.0",

electron/public/electron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {getModel} = require('./recognize-wav');
77

88
let appDataPath;
99

10-
if (fs.existsSync(path.resolve(__dirname, '../models/coqui-stt-0.9.3-models.pbmm'))) {
10+
if (fs.existsSync(path.resolve(__dirname, '../models/model.tflite'))) {
1111
// if the STT model was found at the root, use that directory
1212
appDataPath = path.resolve(__dirname, '../models');
1313
}

0 commit comments

Comments
 (0)