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 @@ -52,7 +52,7 @@ public extension RunAnywhere {
}

/// Stop current TTS synthesis.
@available(*, deprecated, renamed: "tts.stop()")
@available(*, deprecated, message: "Use the SpeechHandle returned by tts.speak(_:options:) to interrupt one utterance")
static func stopSynthesis() async {
await CppBridge.TTS.shared.stop()
}
Expand All @@ -73,7 +73,7 @@ public extension RunAnywhere {
}

/// Stop current speech playback.
@available(*, deprecated, renamed: "tts.stop()")
@available(*, deprecated, message: "Use the SpeechHandle returned by tts.speak(_:options:) to interrupt one utterance")
static func stopSpeaking() async {
await stopSpeech()
}
Expand Down
4 changes: 2 additions & 2 deletions bindings/web/packages/core/src/Public/API/Deprecated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export const deprecatedForwarders = {
await tts.speak(text, options);
},

/** @deprecated Use `RunAnywhere.tts.stop()`. */
/** @deprecated Use the `SpeechHandle` returned by `RunAnywhere.tts.speak(text, options)`. */
stopSpeaking(): void {
tts.stop();
},

/** @deprecated Use `RunAnywhere.tts.stop()`. */
/** @deprecated Use the `SpeechHandle` returned by `RunAnywhere.tts.speak(text, options)`. */
stopSynthesis(): void {
tts.stop();
},
Expand Down
Loading