Skip to content

Commit

Permalink
chore: upgrade DeepSpeech to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Jun 18, 2019
1 parent 6841493 commit b9f4079
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 21 deletions.
55 changes: 37 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"aws-sdk": "^2.382.0",
"body-parser": "^1.17.2",
"cross-env": "^5.2.0",
"deepspeech": "^0.4.1",
"deepspeech": "^0.5.0",
"dotenv": "^4.0.0",
"execa": "^0.10.0",
"express": "^4.15.3",
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup-offline/setup-stt.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default () => new Promise(async (resolve, reject) => {

const destDeepSpeechFolder = 'bin/deepspeech'
const tmpDir = 'scripts/tmp'
const archiveName = 'deepspeech-0.4.1-models.tar.gz'
const archiveName = 'deepspeech-0.5.0-models.tar.gz'
let downloader = 'wget'
if (os.get().type === 'macos') {
downloader = 'curl -L -O'
Expand All @@ -21,7 +21,7 @@ export default () => new Promise(async (resolve, reject) => {
if (!fs.existsSync(`${destDeepSpeechFolder}/lm.binary`)) {
try {
log.info('Downloading pre-trained model...')
await shell(`cd ${tmpDir} && ${downloader} https://github.com/mozilla/DeepSpeech/releases/download/v0.4.1/${archiveName}`)
await shell(`cd ${tmpDir} && ${downloader} https://github.com/mozilla/DeepSpeech/releases/download/v0.5.0/${archiveName}`)
log.success('Pre-trained model download done')
log.info('Unpacking...')
await shell(`cd ${tmpDir} && tar xvfz ${archiveName}`)
Expand Down

0 comments on commit b9f4079

Please sign in to comment.