You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/paddlespeech/server
Hui Zhang 40124ed34f
add en_frontend file
1 year ago
..
bin [ASR] add asr code-switch cli and demo, test='asr' (#2816) 2 years ago
conf support u2pp cli and server, optimiz code of u2pp decode, test=asr 2 years ago
engine add en_frontend file 1 year ago
restful Merge branch 'develop' of https://github.com/lym0302/PaddleSpeech into develop 2 years ago
tests update dependency of paddle 2 years ago
utils Update audio_handler.py 2 years ago
ws Fix some typos. (#3178) 2 years ago
README.md update the vector and text readme, test=doc 3 years ago
README_cn.md [server] update readme (#1851) 3 years ago
__init__.py add server cls, test=doc 3 years ago
base_commands.py
entry.py
executor.py
util.py [audio] mv paddlespeech/audio to paddleaudio (#2706) 2 years ago

README.md

PaddleSpeech Server Command Line

(简体中文|English)

The simplest approach to use PaddleSpeech Server including server and client.

PaddleSpeech Server

Help

paddlespeech_server help

Start the server

First set the service-related configuration parameters, similar to ./conf/application.yaml. Set engine_list, which represents the speech tasks included in the service to be started. Note: If the service can be started normally in the container, but the client access IP is unreachable, you can try to replace the host address in the configuration file with the local IP address.

Then start the service:

paddlespeech_server start --config_file ./conf/application.yaml

PaddleSpeech Client

Help

paddlespeech_client help

Access speech recognition services

paddlespeech_client asr --server_ip 127.0.0.1 --port 8090 --input input_16k.wav

Access text to speech services

paddlespeech_client tts --server_ip 127.0.0.1 --port 8090 --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav

Access audio classification services

paddlespeech_client cls --server_ip 127.0.0.1 --port 8090 --input input.wav

Online ASR Server

Lanuch online asr server

paddlespeech_server start --config_file conf/ws_conformer_application.yaml

Access online asr server

paddlespeech_client asr_online  --server_ip 127.0.0.1 --port 8090 --input input_16k.wav

Online TTS Server

Lanuch online tts server

paddlespeech_server start --config_file conf/tts_online_application.yaml

Access online tts server

paddlespeech_client tts_online  --server_ip 127.0.0.1 --port 8092 --input "您好,欢迎使用百度飞桨深度学习框架!" --output output.wav

Speaker Verification

Lanuch speaker verification server

paddlespeech_server start --config_file conf/vector_application.yaml

Extract speaker embedding from aduio

paddlespeech_client vector --task spk  --server_ip 127.0.0.1 --port 8090 --input 85236145389.wav

Get score with speaker audio embedding

paddlespeech_client vector --task score  --server_ip 127.0.0.1 --port 8090 --enroll 123456789.wav --test 85236145389.wav