Skip to content

Commit

Permalink
Merge pull request #165 from kalafus/MacPaw.combine_audioCreateSpeech
Browse files Browse the repository at this point in the history
protocol parity for audioCreateSpeech
  • Loading branch information
ingvarus-bc authored Feb 14, 2024
2 parents 35afc9a + 46314e3 commit 4b7b666
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ public extension OpenAIProtocol {
.eraseToAnyPublisher()
}

func audioCreateSpeech(query: AudioSpeechQuery) -> AnyPublisher<AudioSpeechResult, Error> {
Future<AudioSpeechResult, Error> {
audioCreateSpeech(query: query, completion: $0)
}
.eraseToAnyPublisher()
}

func audioTranscriptions(query: AudioTranscriptionQuery) -> AnyPublisher<AudioTranscriptionResult, Error> {
Future<AudioTranscriptionResult, Error> {
audioTranscriptions(query: query, completion: $0)
Expand Down

0 comments on commit 4b7b666

Please sign in to comment.