TextToSpeechService.wasm.kt
composeApp/src/wasmJsMain/kotlin/eu/friedcutlet/yokan/services/tts/TextToSpeechService.wasm.kt
1package eu.friedcutlet.yokan.services.tts23actual fun createPlatformTextToSpeechService(): TextToSpeechService = WasmTextToSpeechService45// ponytail: browsers do have SpeechSynthesis; wire it up if web TTS is asked for.6private object WasmTextToSpeechService : TextToSpeechService {7 override suspend fun voices(language: String?): List<String> = emptyList()8 override suspend fun speak(9 text: String,10 request: TextToSpeechRequest,11 onProgress: (startOffset: Int, endOffset: Int) -> Unit,12 ) = Unit1314 override suspend fun stop() = Unit15}16