语音转文字开源软件- DeepSpeech(1) 安装和使用
- DeepSpeech Git 地址:https://github.com/mozilla/DeepSpeech
- Mozilla 的语料库:https://voice.mozilla.org/en/languages
实验
- 克隆Git: git clone https://github.com/mozilla/DeepSpeech
- 下载训练好model: wget https://github.com/mozilla/DeepSpeech/releases/download/v0.4.1/deepspeech-0.4.1-models.tar.gz
- 解压: tar xvfz deepspeech-0.4.1-models.tar.gz
- 下载测试音频:
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.4.1/audio-0.4.1.tar.gz - 解压: tar xvfz audio-0.4.1.tar.gz
- 安裝: pip3 install deepspeech-gpu
- 帮助: deepspeech --help
- 测试功能:
deepspeech --model models/output_graph.pbmm --alphabet models/alphabet.txt --lm models/lm.binary --trie models/trie --audio my_audio_file.wav
如何用python 调用模型
`
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division,