Skip to content

Commit c5cdfc7

Browse files
committed
Update examples
Signed-off-by: Michael Yuan <[email protected]>
1 parent 0269982 commit c5cdfc7

File tree

19 files changed

+73
-52
lines changed

19 files changed

+73
-52
lines changed

examples/alibailian/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ hello_wav = "hello.wav"
55

66
[asr]
77
platform = "paraformer_v2"
8+
url = "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
89
paraformer_token = "sk-API-KEY"
910

1011

1112
[tts]
1213
platform = "cosyvoice"
14+
url = "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
1315
token = "sk-API-KEY"
1416
speaker = "longhua_v2"
1517

examples/gaia/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ hello_wav = "hello.wav"
33

44
# Requires a local gsv_tts server at port 9094: https://github.com/second-state/gsv_tts
55
[tts]
6-
platform = "StreamGSV"
6+
platform = "stream_gsv"
77
url = "http://localhost:9094/v1/audio/stream_speech"
88
speaker = "cooper"
99

1010
# Requires a local Whisper API server at port 9092: https://llamaedge.com/docs/ai-models/speech-to-text/quick-start-whisper
1111
[asr]
12-
platform = "whisper"
12+
platform = "openai"
1313
url = "http://localhost:9092/v1/audio/transcriptions"
1414
lang = "auto"
1515
# Requires a local Silero VAD server at port 9093: https://github.com/second-state/silero_vad_server
@@ -18,7 +18,7 @@ vad_url = "http://localhost:9093/v1/audio/vad"
1818

1919
# Requires a local LlamaEdge API server at port 9091: https://llamaedge.com/docs/ai-models/llm/quick-start-llm
2020
[llm]
21-
platform = "chat"
21+
platform = "openai_chat"
2222
url = "http://localhost:9091/v1/chat/completions"
2323
api_key = "Bearer gaia-1234"
2424
model = "default"

examples/gaia/english_teacher/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
19-
api_key = "Bearer gaia-1234"
19+
api_key = "gaia-1234"
2020
history = 5
2121

2222
[[llm.sys_prompts]]

examples/gaia/oppenheimer/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
19-
api_key = "Bearer gaia-1234"
19+
api_key = "gaia-1234"
2020
history = 5
2121

2222
[[llm.sys_prompts]]

examples/gaia/paris/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
19-
api_key = "Bearer gaia-1234"
19+
api_key = "gaia-1234"
2020
history = 5
2121

2222
[[llm.sys_prompts]]

examples/gaia/singapore/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
19-
api_key = "Bearer gaia-1234"
19+
api_key = "gaia-1234"
2020
history = 5
2121

2222
[[llm.sys_prompts]]

examples/gaia/steve_jobs/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
19-
api_key = "Bearer gaia-1234"
19+
api_key = "gaia-1234"
2020
history = 5
2121

2222
[[llm.sys_prompts]]

examples/gaia/translate/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ addr = "0.0.0.0:9090"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "StreamGSV"
5+
platform = "stream_gsv"
66
url = "http://localhost:9094/v1/audio/stream_speech"
77
speaker = "cooper"
88

99
[asr]
10-
platform = "whisper"
10+
platform = "openai"
1111
url = "http://localhost:9092/v1/audio/transcriptions"
1212
lang = "auto"
1313
# vad_url = "http://localhost:9093/v1/audio/vad"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
platform = "chat"
17+
platform = "openai_chat"
1818
url = "http://localhost:9091/v1/chat/completions"
1919
api_key = "Bearer gaia-1234"
2020
history = 0

examples/gemini/custom_tts/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ hello_wav = "hello.wav"
55
api_key = "ABCD-1234-xyz"
66

77
[tts]
8-
platform = "Elevenlabs"
8+
platform = "elevenlabs"
9+
url = "wss://api.elevenlabs.io/v1/text-to-speech"
910
token = "sk_abcd1234"
1011
voice = "VOICE-ID-FROM-YOUR-ACCOUNT"
1112

examples/grok/chat/config.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ addr = "0.0.0.0:8080"
22
hello_wav = "hello.wav"
33

44
[tts]
5-
platform = "OpenAI"
5+
platform = "openai"
6+
url = "https://api.openai.com/v1/audio/speech"
67
model = "gpt-4o-mini-tts"
78
api_key = "sk_ABCD"
89
voice = "ash"
910

1011
[asr]
12+
platform = "openai"
1113
url = "https://api.openai.com/v1/audio/transcriptions"
1214
api_key = "sk_ABCD"
1315
model = "gpt-4o-mini-transcribe"
@@ -17,7 +19,8 @@ vad_url = "http://localhost:9093/v1/audio/vad"
1719
# vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1820

1921
[llm]
20-
llm_chat_url = "https://api.x.ai/v1/chat/completions"
22+
platform = "openai_chat"
23+
url = "https://api.x.ai/v1/chat/completions"
2124
api_key = "xai_ABCD"
2225
model = "grok-4-1-fast-non-reasoning"
2326
history = 5

0 commit comments

Comments
 (0)