|
|
@@ -34,8 +34,11 @@ class TTSManager {
|
|
|
this.isSpeaking = true;
|
|
|
try {
|
|
|
const token = await getBaiduTTSAccessToken();
|
|
|
+ console.log(token,'11111111111111111');
|
|
|
+ console.log(text,'22222222222222222');
|
|
|
const audioUrl = getBaiduTTSUrl(text, token);
|
|
|
this.audioContext.src = audioUrl;
|
|
|
+ console.log(text,'3333333333333');
|
|
|
this.audioContext.play();
|
|
|
} catch (error) {
|
|
|
console.error('TTS合成失败:', error);
|