提交

chore: upgrade DeepSpeech to 0.5.0

这个提交包含在:
Louistiti
2019-06-18 18:13:03 +02:00
父节点 6841493740
当前提交 b9f4079bda
修改 3 个文件,包含 40 行新增21 行删除
+2 -2
查看文件
@@ -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'
@@ -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}`)