import { Language } from '../types' /** * TTS Stub — prepared for future Piper TTS integration via compliance-tts-service (:8095) * POST /synthesize { text, voice: 'de_DE-thorsten-high' } * Returns audio URL from MinIO */ export async function synthesizeSpeech(text: string, lang: Language): Promise { // TODO: Connect to compliance-tts-service // const voice = lang === 'de' ? 'de_DE-thorsten-high' : 'en_US-lessac-high' // const res = await fetch('http://compliance-tts-service:8095/synthesize', { // method: 'POST', // headers: { 'Content-Type': 'application/json' }, // body: JSON.stringify({ text, voice }), // }) // if (!res.ok) return null // const data = await res.json() // return data.audio_url return null }