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
16 lines
806 B
Plaintext
16 lines
806 B
Plaintext
# Spring AI 2.0.2 audio classes and defaults (read from the jars)
|
|
|
|
speech-to-text interface : org.springframework.ai.audio.transcription.TranscriptionModel
|
|
speech-to-text OpenAI : org.springframework.ai.openai.OpenAiAudioTranscriptionModel
|
|
text-to-speech interface : org.springframework.ai.audio.tts.TextToSpeechModel
|
|
text-to-speech OpenAI : org.springframework.ai.openai.OpenAiAudioSpeechModel
|
|
|
|
transcription DEFAULT_TRANSCRIPTION_MODEL = whisper-1
|
|
transcription DEFAULT_RESPONSE_FORMAT = text
|
|
speech DEFAULT_SPEECH_MODEL = gpt-4o-mini-tts
|
|
speech DEFAULT_VOICE = alloy
|
|
speech DEFAULT_RESPONSE_FORMAT = mp3
|
|
speech DEFAULT_SPEED = 1.0
|
|
both DEFAULT_TIMEOUT = PT1M
|
|
both DEFAULT_MAX_RETRIES = 3
|