Browse Source

上传过滤字符代码

weicu
liwei1dao 1 year ago
parent
commit
fd1c7ec8b7
  1. 2
      local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureTtsHelper.kt

2
local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureTtsHelper.kt

@ -380,7 +380,7 @@ class AzureTtsHelper(private val context: Context) : ITtsService {
} }
lastSpeakTime = currentTime lastSpeakTime = currentTime
val currentText = cleanTextForTTS(streamBuffer.toString()) val currentText = streamBuffer.toString() //cleanTextForTTS(streamBuffer.toString())
// 定义标点符号列表 // 定义标点符号列表
val punctuationMarks = listOf('.', '。', '!', '!', '?', '?', ';', ';', ',', ',', ':', ':', '\n') val punctuationMarks = listOf('.', '。', '!', '!', '?', '?', ';', ';', ',', ',', ':', ':', '\n')

Loading…
Cancel
Save