Compare commits

...

2 Commits

Author SHA1 Message Date
朱潮
e4503e2d1a config 2025-09-19 20:28:43 +08:00
朱潮
38d015d3f2 fix audio 2025-09-19 20:16:39 +08:00
6 changed files with 2 additions and 2 deletions

View File

@ -56,5 +56,5 @@ output_audio_config = {
"format": "pcm", "format": "pcm",
"channels": 1, "channels": 1,
"sample_rate": 24000, "sample_rate": 24000,
"bit_size": pyaudio.paFloat32, "bit_size": pyaudio.paInt16,
} }

Binary file not shown.

View File

@ -6,7 +6,7 @@ from audio_manager import DialogSession
async def main() -> None: async def main() -> None:
parser = argparse.ArgumentParser(description="Real-time Dialog Client") parser = argparse.ArgumentParser(description="Real-time Dialog Client")
parser.add_argument("--format", type=str, default="pcm", help="The audio format (e.g., pcm, pcm_s16le).") parser.add_argument("--format", type=str, default="pcm_s16le", help="The audio format (e.g., pcm, pcm_s16le).")
parser.add_argument("--audio", type=str, default="", help="audio file send to server, if not set, will use microphone input.") parser.add_argument("--audio", type=str, default="", help="audio file send to server, if not set, will use microphone input.")
parser.add_argument("--mod",type=str,default="audio",help="Use mod to select plain text input mode or audio mode, the default is audio mode") parser.add_argument("--mod",type=str,default="audio",help="Use mod to select plain text input mode or audio mode, the default is audio mode")
parser.add_argument("--recv_timeout",type=int,default=10,help="Timeout for receiving messages,value range [10,120]") parser.add_argument("--recv_timeout",type=int,default=10,help="Timeout for receiving messages,value range [10,120]")

Binary file not shown.