Add audio module: meeting minutes with Spring AI speech-to-text, structured output and text-to-speech
OpenAiAudioTranscriptionModel -> ChatClient.entity(Minutes.class) -> OpenAiAudioSpeechModel, WAV chunking at a silence under the 25 MB upload limit, SDK retry behaviour, the 4096-character speech limit and a cost model. Audio endpoints are a local mock and the chat model a stub; no real model was called. Spring Boot 4.1.2, Spring AI 2.0.2, Java 25. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CifR2BE7PBvRy5hT8TS9oz
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# OpenAiAudioSpeechModel -- MOCK server
|
||||
|
||||
speech.call(String) with every default:
|
||||
request json : {"input":"Three action items.","model":"gpt-4o-mini-tts","voice":"alloy","response_format":"mp3","speed":1.0}
|
||||
response : 20310 bytes
|
||||
|
||||
with TextToSpeechPrompt and options:
|
||||
request json : {"input":"Rahul: fix the login timeout bug.","model":"gpt-4o-mini-tts","voice":"coral","instructions":"Calm, like a project manager reading notes.","response_format":"wav","speed":1.1}
|
||||
response : 35244 bytes, starts with RIFF
|
||||
|
||||
input of 5000 characters -> BadRequestException: 400: mock: the maximum length of input is 4096 characters, got 5000
|
||||
Reference in New Issue
Block a user