OpenAiAudioTranscriptionModel converts spoken audio into text through Spring AI’s TranscriptionModel abstraction. It accepts an audio Resource and returns transcription text, avoiding direct lower-level OpenAI API handling. section 8.1.1
A typical integration proceeds as follows:
- Configure the OpenAI starter and API key; existing OpenAI chat and embedding configuration can be disabled when another API handles those features. section 8.1.1
Audio question endpoint
A POST /audioAsk endpoint accepts an audio multipart field and gameTitle, transcribes the audio, constructs a Question, and returns the conversational answer. A sample request uploads what_is_graveyard.mp3 for Burger Battle.
