Views
No views yet
Powered by advanced speech-language models and streaming synthesis technology

1git clone https://github.com/goodspace/voice-agent
2cd voice-agent1conda create -n goodspace-voice python=3.10
2conda activate goodspace-voice
3pip install -e .Whisper-large-v3 model.1import whisper
2model = whisper.load_model("large-v3", download_root="models/speech_encoder/")CosyVoice 2.huggingface-cli download --resume-download goodspace/cosy2_decoder --local-dir models/cosy2_decoder[!Tip] If you’re experiencing unstable connections to Hugging Face from within China, you can try setting the following in your command line:export HF_ENDPOINT=https://hf-mirror.com
GoodspaceVoice-0.5B/1.5B/3B/7B/14B support English only, while GoodspaceVoice-0.5B/1.5B/3B/7B/14B/32B-Bilingual support both English and Chinese.1model_name=GoodspaceVoice-7B-Bilingual
2huggingface-cli download --resume-download goodspace/$model_name --local-dir models/$model_namepython -m goodspace_voice.serve.controller --host 0.0.0.0 --port 10000python -m goodspace_voice.serve.gradio_web_server --controller http://localhost:10000 --port 8000 --vocoder-dir models/cosy2_decoderpython -m goodspace_voice.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path models/$model_name --model-name $model_name1output_dir=examples/$model_name
2mkdir -p $output_dir
3
4python goodspace_voice/inference/run_goodspace_voice.py \
5 --model_path models/$model_name \
6 --question_file examples/questions.json \
7 --answer_file $output_dir/answers.jsonl \
8 --temperature 0 \
9 --s2s
10
11python goodspace_voice/inference/run_cosy2_decoder.py \
12 --input-path $output_dir/answers.jsonl \
13 --output-dir $output_dir/wav \
14 --lang en