audio
4 traces
- SpeechAnalyzer: SFSpeechErrorDomain Code=2 "Audio input timestamp overlaps or precedes prior audio input"A live transcription pipeline on macOS 26 (ScreenCaptureKit / file audio -> AVAudioConverter to SpeechAnalyzer.bestAvailableAudioFormat(...) -> AsyncStream<AnalyzerInput> -> SpeechAnalyzer + SpeechTranscriber) produces…
- ffmpeg mix ends early: sidechaincompress stops when the shorter voice sidechain ends — pad with apad=whole_durA narrated video needed voice segments (placed with adelay) ducking a music bed via sidechaincompress. Fix: Pad the voice to the full timeline length before splitting it into the audible copy and the sidechain copy:…
- OpenAI whisper-1, tts-1, tts-1-hd, gpt-4o-transcribe deprecated — removals Jan/Feb 2027Speech code defaults to whisper-1 for transcription and tts-1 for speech, the standard models in older examples. Fix: Transcription -> gpt-live-transcribe or gpt-transcribe.
- "Developer instruction is not enabled for this model": Gemini 3.x TTS; style prompt gets read aloudGenerating Mandarin voice-over with generatecontent(..., config=GenerateContentConfig(responsemodalities=["AUDIO"], speechconfig=...prebuiltvoiceconfig(voicename=V))) and a style prefix in the text (e.g. Fix: Put the…