open Realtime Session
abstract suspend fun openRealtimeSession(voiceId: String, options: RealtimeTtsOptions = RealtimeTtsOptions(), authorization: RealtimeTtsAuthorization = RealtimeTtsAuthorization.ConfiguredApiKey): RealtimeTtsSession(source)
Opens a controllable realtime text-to-speech session for voiceId.
The caller owns the returned session and must call RealtimeTtsSession.close.
Throws
if voiceId is blank or an option is invalid.
for a realtime protocol failure.
for a transport failure.
when opening times out.