from common.utils import is_python3 APPID = 0 SECRET_ID = '' SECRET_KEY = '' VOICETYPE = 101001 # 音色类型 CODEC = "mp3" # 音频格式:pcm/mp3 SAMPLE_RATE = 16000 # 音频采样率:8000/16000 ENABLE_SUBTITLE = False class MySpeechSynthesisListener(flowing_speech_synthesizer.FlowingSpeechSynthesi...
Breadcrumbs tencentcloud-speech-sdk-python /examples /soe / soeexample.pyTop File metadata and controls Code Blame 85 lines (70 loc) · 2.53 KB Raw # -*- coding: utf-8 -*- # 引用 SDK import time import sys import threading from datetime import datetime import json sys.path.append("....
Commits BreadcrumbsHistory for tencentcloud-speech-sdk-python examples tts ttsexample.py onmaster User selector All users DatepickerAll time Commit History End of commit history for this fileFooter © 2025 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do ...
if is_python3(): super().on_text_result(response) else: super(MySpeechSynthesisListener, self).on_text_result(response) super().on_text_result(response) # TODO 接收到文本数据,添加业务逻辑 result = response["result"] @@ -133,10 +121,7 @@ def on_synthesis_fail(self, response...