mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 03:21:38 +00:00
* feat(watchos): add direct gateway node * docs: refresh watch node docs map * chore: leave release notes to release workflow * chore(ios): refresh native localization inventory * fix(watchos): keep direct node policy bounded
19 lines
546 B
Swift
19 lines
546 B
Swift
#if Talk && canImport(ElevenLabsKit)
|
|
import Foundation
|
|
|
|
@MainActor
|
|
public protocol StreamingAudioPlaying {
|
|
func play(stream: AsyncThrowingStream<Data, Error>) async -> StreamingPlaybackResult
|
|
func stop() -> Double?
|
|
}
|
|
|
|
@MainActor
|
|
public protocol PCMStreamingAudioPlaying {
|
|
func play(stream: AsyncThrowingStream<Data, Error>, sampleRate: Double) async -> StreamingPlaybackResult
|
|
func stop() -> Double?
|
|
}
|
|
|
|
extension StreamingAudioPlayer: StreamingAudioPlaying {}
|
|
extension PCMStreamingAudioPlayer: PCMStreamingAudioPlaying {}
|
|
#endif
|