Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ suspend fun RunAnywhere.loadModel(model: RAModelInfo): RAModelLoadResult =
),
)

@Deprecated("Use RunAnywhere.models.unload(category).")
@Deprecated("Use RunAnywhere.models.unloadAll(category).")
suspend fun RunAnywhere.unloadModel(request: ModelUnloadRequest): ModelUnloadResult {
if (!isInitialized) {
return ModelUnloadResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ suspend fun RunAnywhere.transcribe(
return result
}

@Deprecated("Use RunAnywhere.stt.transcribeStream(audio, options).")
@Deprecated("Use RunAnywhere.stt.openStream(format, options).")
fun RunAnywhere.transcribeStream(
audio: Flow<ByteArray>,
options: RASTTOptions = RASTTOptions.defaults(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ fun RunAnywhere.synthesizeStream(
}
}

@Deprecated("Use RunAnywhere.tts.stop().")
@Deprecated("Use interrupt() on the SpeechHandle returned by RunAnywhere.tts.speak().")
suspend fun RunAnywhere.stopSynthesis() {
CppBridgeTTS.stop()
}
Expand Down Expand Up @@ -241,7 +241,7 @@ private fun convertPcmToWav(pcmData: ByteArray, sampleRate: Int): ByteArray {
?: throw SDKException.tts("Failed to convert PCM to WAV")
}

@Deprecated("Use RunAnywhere.tts.stop().")
@Deprecated("Use interrupt() on the SpeechHandle returned by RunAnywhere.tts.speak().")
suspend fun RunAnywhere.stopSpeaking() {
ttsAudioPlayback.stop()
stopSynthesis()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ suspend fun RunAnywhere.detectVoiceActivity(
* `error_code`) and the flow finishes so callers do not silently keep
* pumping audio into a dead detector.
*/
@Deprecated("Use RunAnywhere.vad.detectStream(audio, options).")
@Deprecated("Use RunAnywhere.vad.openStream(format, options).")
fun RunAnywhere.streamVAD(
audio: Flow<ByteArray>,
options: RAVADOptions? = null,
Expand All @@ -115,7 +115,7 @@ fun RunAnywhere.streamVAD(
)
}

@Deprecated("Cancel the Flow returned by RunAnywhere.vad.detectStream instead.")
@Deprecated("Close the VadStream returned by RunAnywhere.vad.openStream instead.")
suspend fun RunAnywhere.resetVAD() {
if (!isInitialized) {
throw notInitializedException()
Expand Down
Loading