You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add audio chat API support for gpt-4o-audio-preview model
Implements audio-to-audio chat completion replacing the traditional STT→Chat→TTS pipeline with a single API call for 2-3x faster response times. Includes streaming support, AudioConversationManager utility for multi-turn conversations with history tracking, and comprehensive test coverage.
Copy file name to clipboardExpand all lines: README.md
+126Lines changed: 126 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ This repository contains Swift community-maintained implementation over [OpenAI]
32
32
-[Audio Create Speech](#audio-create-speech)
33
33
-[Audio Transcriptions](#audio-transcriptions)
34
34
-[Audio Translations](#audio-translations)
35
+
-[Audio Chat](#audio-chat-gpt-4o-audio-preview)
35
36
-[Structured Outputs](#structured-outputs)
36
37
-[Specialized models](#specialized-models)
37
38
-[Embeddings](#embeddings)
@@ -735,6 +736,131 @@ openAI.audioTranslations(query: query) { result in
735
736
let result =tryawait openAI.audioTranslations(query: query)
736
737
```
737
738
739
+
### Audio Chat (gpt-4o-audio-preview)
740
+
741
+
The Audio Chat API enables audio-to-audio conversations with GPT-4o Audio models. This replaces the traditional STT→Chat→TTS pipeline with a single API call, providing 2-3x faster response times and better voice quality.
0 commit comments