fix(pitch-deck): presenter fixes — prev button, TTS pronunciation, text accuracy
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m11s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 35s
CI / test-python-voice (push) Successful in 30s
CI / test-bqas (push) Successful in 27s
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m11s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 35s
CI / test-python-voice (push) Successful in 30s
CI / test-bqas (push) Successful in 27s
- Fix: Zurück-Button — onPrev was not passed to PresenterOverlay - TTS: BreakPilot, Executive Summary etc. pronounced in English - "Ihre Kunden" → "Unsere Kunden" - "kein kleine" → "kein kleines und mittleres Unternehmen vorhalten kann" - Removed all false "lösen/befreien" claims Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,21 @@ export async function POST(request: NextRequest) {
|
||||
return await synthesizeViaOvh(text, OVH_EN)
|
||||
}
|
||||
|
||||
return await synthesizeViaComplianceService(text, language)
|
||||
// Fix pronunciation of English words in German TTS
|
||||
let ttsText = text
|
||||
if (language === 'de') {
|
||||
ttsText = ttsText
|
||||
.replace(/BreakPilot/g, 'Bräikpailot')
|
||||
.replace(/Breakpilot/g, 'Bräikpailot')
|
||||
.replace(/Executive Summary/g, 'Exekjutiv Sammäri')
|
||||
.replace(/Onepager/g, 'Wann-Päidscher')
|
||||
.replace(/Land & Expand/g, 'Länd änd Expänd')
|
||||
.replace(/Compliance Optimizer/g, 'Compliance Optimeiser')
|
||||
.replace(/Deep Dive/g, 'Diep Deiv')
|
||||
.replace(/Use Case/g, 'Juhs Käis')
|
||||
}
|
||||
|
||||
return await synthesizeViaComplianceService(ttsText, language)
|
||||
} catch (error) {
|
||||
console.error('TTS proxy error:', error)
|
||||
return NextResponse.json({ error: 'TTS service not reachable' }, { status: 503 })
|
||||
|
||||
Reference in New Issue
Block a user