|
|
@ -15,7 +15,7 @@ import com.deep_voice.speech.tts.TtsEvent |
|
|
import com.deep_voice.speech.tts.TtsEventListener |
|
|
import com.deep_voice.speech.tts.TtsEventListener |
|
|
import com.deep_voice.speech.tts.TtsEventType |
|
|
import com.deep_voice.speech.tts.TtsEventType |
|
|
import com.yunqiinnovation.ble_service.BleService |
|
|
import com.yunqiinnovation.ble_service.BleService |
|
|
|
|
|
import com.deep_voice.speech.tts.AudioOutputDevice |
|
|
/** AzureSpeechPlugin */ |
|
|
/** AzureSpeechPlugin */ |
|
|
class AzureSpeechPlugin : BleService.Callback, FlutterPlugin { |
|
|
class AzureSpeechPlugin : BleService.Callback, FlutterPlugin { |
|
|
private val tag = "AzureSpeechPlugin" |
|
|
private val tag = "AzureSpeechPlugin" |
|
|
@ -501,6 +501,10 @@ class AzureSpeechPlugin : BleService.Callback, FlutterPlugin { |
|
|
azureTtsHelper.release() |
|
|
azureTtsHelper.release() |
|
|
result.success(true) |
|
|
result.success(true) |
|
|
} |
|
|
} |
|
|
|
|
|
"setAudioOutputDevice" -> { |
|
|
|
|
|
azureTtsHelper.setAudioOutputDevice(AudioOutputDevice.SPEAKER) |
|
|
|
|
|
result.success(true) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
else -> { |
|
|
else -> { |
|
|
result.notImplemented() |
|
|
result.notImplemented() |
|
|
|