Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
54341c88
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
1 年多 前同步成功
通知
208
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
54341c88
编写于
2月 28, 2022
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cli batch and shell pipe, test=doc
上级
93ae91ba
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
47 addition
and
3 deletion
+47
-3
README.md
README.md
+13
-2
README_cn.md
README_cn.md
+11
-0
demos/speech_recognition/.gitignore
demos/speech_recognition/.gitignore
+1
-0
demos/speech_recognition/README.md
demos/speech_recognition/README.md
+2
-0
demos/speech_recognition/README_cn.md
demos/speech_recognition/README_cn.md
+2
-0
demos/speech_recognition/run.sh
demos/speech_recognition/run.sh
+6
-0
demos/text_to_speech/README.md
demos/text_to_speech/README.md
+4
-1
demos/text_to_speech/README_cn.md
demos/text_to_speech/README_cn.md
+4
-0
demos/text_to_speech/run.sh
demos/text_to_speech/run.sh
+4
-0
未找到文件。
README.md
浏览文件 @
54341c88
...
...
@@ -196,16 +196,18 @@ Developers can have a try of our models with [PaddleSpeech Command Line](./paddl
```
shell
paddlespeech cls
--input
input.wav
```
**Automatic Speech Recognition**
```
shell
paddlespeech asr
--lang
zh
--input
input_16k.wav
```
**Speech Translation**
(English to Chinese)
**Speech Translation**
(English to Chinese)
(not support for Mac and Windows now)
```
shell
paddlespeech st
--input
input_16k.wav
```
**Text-to-Speech**
```
shell
paddlespeech tts
--input
"你好,欢迎使用飞桨深度学习框架!"
--output
output.wav
...
...
@@ -218,7 +220,16 @@ paddlespeech tts --input "你好,欢迎使用飞桨深度学习框架!" --ou
paddlespeech text
--task
punc
--input
今天的天气真不错啊你下午有空吗我想约你一起去吃饭
```
**Batch Process**
```
echo -e "1 欢迎光临。\n2 谢谢惠顾。" | paddlespeech tts
```
**Shell Pipeline**
ASR + Punc:
```
paddlespeech asr --input ./zh.wav | paddlespeech text --task punc
```
For more command lines, please see:
[
demos
](
https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/demos
)
...
...
README_cn.md
浏览文件 @
54341c88
...
...
@@ -216,6 +216,17 @@ paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!
paddlespeech text
--task
punc
--input
今天的天气真不错啊你下午有空吗我想约你一起去吃饭
```
**批处理**
```
echo -e "1 欢迎光临。\n2 谢谢惠顾。" | paddlespeech tts
```
**Shell管道**
ASR + Punc:
```
paddlespeech asr --input ./zh.wav | paddlespeech text --task punc
```
更多命令行命令请参考
[
demos
](
https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/demos
)
> Note: 如果需要训练或者微调,请查看[语音识别](./docs/source/asr/quick_start.md), [语音合成](./docs/source/tts/quick_start.md)。
...
...
demos/speech_recognition/.gitignore
0 → 100644
浏览文件 @
54341c88
*.wav
demos/speech_recognition/README.md
浏览文件 @
54341c88
...
...
@@ -27,6 +27,8 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
paddlespeech asr
--input
./zh.wav
# English
paddlespeech asr
--model
transformer_librispeech
--lang
en
--input
./en.wav
# Chinese ASR + Punctuation Restoration
paddlespeech asr
--input
./zh.wav | paddlespeech text
--task
punc
```
(It doesn't matter if package
`paddlespeech-ctcdecoders`
is not found, this package is optional.)
...
...
demos/speech_recognition/README_cn.md
浏览文件 @
54341c88
...
...
@@ -25,6 +25,8 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
paddlespeech asr
--input
./zh.wav
# 英文
paddlespeech asr
--model
transformer_librispeech
--lang
en
--input
./en.wav
# 中文 + 标点恢复
paddlespeech asr
--input
./zh.wav | paddlespeech text
--task
punc
```
(如果显示
`paddlespeech-ctcdecoders`
这个 python 包没有找到的 Error,没有关系,这个包是非必须的。)
...
...
demos/speech_recognition/run.sh
浏览文件 @
54341c88
#!/bin/bash
wget
-c
https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
# asr
paddlespeech asr
--input
./zh.wav
# asr + punc
paddlespeech asr
--input
./zh.wav | paddlespeech text
--task
punc
\ No newline at end of file
demos/text_to_speech/README.md
浏览文件 @
54341c88
...
...
@@ -17,11 +17,14 @@ The input of this demo should be a text of the specific language that can be pas
### 3. Usage
-
Command Line (Recommended)
-
Chinese
The default acoustic model is
`Fastspeech2`
, and the default vocoder is
`Parallel WaveGAN`
.
```
bash
paddlespeech tts
--input
"你好,欢迎使用百度飞桨深度学习框架!"
```
-
Batch Process
```
bash
echo
-e
"1 欢迎光临。
\n
2 谢谢惠顾。"
| paddlespeech tts
```
-
Chinese, use
`SpeedySpeech`
as the acoustic model
```
bash
paddlespeech tts
--am
speedyspeech_csmsc
--input
"你好,欢迎使用百度飞桨深度学习框架!"
...
...
demos/text_to_speech/README_cn.md
浏览文件 @
54341c88
...
...
@@ -24,6 +24,10 @@
```
bash
paddlespeech tts
--input
"你好,欢迎使用百度飞桨深度学习框架!"
```
-
批处理
```
bash
echo
-e
"1 欢迎光临。
\n
2 谢谢惠顾。"
| paddlespeech tts
```
-
中文,使用
`SpeedySpeech`
作为声学模型
```
bash
paddlespeech tts
--am
speedyspeech_csmsc
--input
"你好,欢迎使用百度飞桨深度学习框架!"
...
...
demos/text_to_speech/run.sh
浏览文件 @
54341c88
#!/bin/bash
# single process
paddlespeech tts
--input
今天的天气不错啊
# Batch process
echo
-e
"1 欢迎光临。
\n
2 谢谢惠顾。"
| paddlespeech tts
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录