# open-python-gpt **Repository Path**: luckilyhhp/open-python-gpt ## Basic Information - **Project Name**: open-python-gpt - **Description**: python实现chatgpt语音输入和语音输出 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2023-03-07 - **Last Updated**: 2023-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## python实现chatgpt语音输入提问,与语音输出到默认麦克风设备 ## 需要您申请openai key ## 语音合成需要您申请azure 语音识别key,个人使用基本免费 ```python openai.api_key = 'openai key' # 创建语音合成器 speech_config = speechsdk.SpeechConfig('azure speech api key', 'eastasia') speech_config.speech_recognition_language = "zh-CN" # The language of the voice that speaks. speech_config.speech_synthesis_voice_name = 'zh-CN-XiaoxiaoNeural' ``` ### 唤醒关键字是 你好刘宝,可以根据需要自己去azure平台上训练您自己的关键字