diff --git a/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift b/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift index da8b7dfb..c5142044 100644 --- a/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift +++ b/Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift @@ -113,6 +113,13 @@ public extension OpenAIProtocol { .eraseToAnyPublisher() } + func audioCreateSpeech(query: AudioSpeechQuery) -> AnyPublisher { + Future { + audioCreateSpeech(query: query, completion: $0) + } + .eraseToAnyPublisher() + } + func audioTranscriptions(query: AudioTranscriptionQuery) -> AnyPublisher { Future { audioTranscriptions(query: query, completion: $0)