diff --git a/bindings/swift/Sources/RunAnywhere/Public/Extensions/TTS/RunAnywhere+TTS.swift b/bindings/swift/Sources/RunAnywhere/Public/Extensions/TTS/RunAnywhere+TTS.swift index 50fdd50f69..2c21b02372 100644 --- a/bindings/swift/Sources/RunAnywhere/Public/Extensions/TTS/RunAnywhere+TTS.swift +++ b/bindings/swift/Sources/RunAnywhere/Public/Extensions/TTS/RunAnywhere+TTS.swift @@ -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() } @@ -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() } diff --git a/bindings/web/packages/core/src/Public/API/Deprecated.ts b/bindings/web/packages/core/src/Public/API/Deprecated.ts index 87d5d5c83d..1f99499df4 100644 --- a/bindings/web/packages/core/src/Public/API/Deprecated.ts +++ b/bindings/web/packages/core/src/Public/API/Deprecated.ts @@ -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(); },