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

- 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:
Benjamin Admin
2026-04-22 10:28:25 +02:00
parent 9dcbc5a951
commit 0bdf40e1c6
3 changed files with 19 additions and 4 deletions

View File

@@ -29,7 +29,21 @@ export async function POST(request: NextRequest) {
return await synthesizeViaOvh(text, OVH_EN) 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) { } catch (error) {
console.error('TTS proxy error:', error) console.error('TTS proxy error:', error)
return NextResponse.json({ error: 'TTS service not reachable' }, { status: 503 }) return NextResponse.json({ error: 'TTS service not reachable' }, { status: 503 })

View File

@@ -282,6 +282,7 @@ export default function PitchDeck({ lang, onToggleLanguage, investor, onLogout,
onResume={presenter.resume} onResume={presenter.resume}
onStop={presenter.stop} onStop={presenter.stop}
onSkip={presenter.skipSlide} onSkip={presenter.skipSlide}
onPrev={presenter.prevSlide}
/> />
<AnimatePresence> <AnimatePresence>

View File

@@ -37,8 +37,8 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
pause_after: 1500, pause_after: 1500,
}, },
{ {
text_de: 'Über 380 Regularien und Normen in unserer KI-Wissensbasis. Über 25.000 extrahierte Prüfaspekte. 12 Produkt-Module. Und das Beste: Ihre Kunden sparen ab Tag eins mehr als sie zahlen. Die Executive Summary können Sie als PDF herunterladen.', text_de: 'Über 380 Regularien und Normen in unserer KI-Wissensbasis. Über 25.000 extrahierte Prüfaspekte. 12 Produkt-Module. Und das Beste: Unsere Kunden sparen ab Tag eins mehr als sie zahlen. Die Executive Summary können Sie als PDF herunterladen.',
text_en: 'Over 380 regulations and standards in our AI knowledge base. Over 25,000 extracted audit aspects. 12 product modules. And the best part: your customers save more than they pay from day one. You can download the executive summary as PDF.', text_en: 'Over 380 regulations and standards in our AI knowledge base. Over 25,000 extracted audit aspects. 12 product modules. And the best part: our customers save more than they pay from day one. You can download the executive summary as PDF.',
pause_after: 1000, pause_after: 1000,
}, },
], ],
@@ -77,7 +77,7 @@ export const PRESENTER_SCRIPT: SlideScript[] = [
pause_after: 2500, pause_after: 2500,
}, },
{ {
text_de: 'AI Act, NIS 2 Richtlinie, Cyber Resilience Act, Datenschutz-Grundverordnung, Maschinenverordnung — jedes einzelne Gesetz erfordert Expertise, die kein kleine und mittlere Unternehmen intern vorhalt. Externe Pentests und C. E. Zertifizierungen kosten 55.000 Euro und mehr im Jahr — und prüfen nur einmal. Am nächsten Tag kann alles wieder veraltet sein.', text_de: 'AI Act, NIS 2 Richtlinie, Cyber Resilience Act, Datenschutz-Grundverordnung, Maschinenverordnung — jedes einzelne Gesetz erfordert Expertise, die kein kleines und mittleres Unternehmen intern vorhalten kann. Externe Pentests und C. E. Zertifizierungen kosten 55.000 Euro und mehr im Jahr — und prüfen nur einmal. Am nächsten Tag kann alles wieder veraltet sein.',
text_en: 'AI Act, NIS2, CRA, GDPR, Machinery Regulation — each law requires expertise that no SME maintains internally. External pentests and CE certifications cost EUR 55,000 or more per year — and only check once. The next day everything could be outdated again.', text_en: 'AI Act, NIS2, CRA, GDPR, Machinery Regulation — each law requires expertise that no SME maintains internally. External pentests and CE certifications cost EUR 55,000 or more per year — and only check once. The next day everything could be outdated again.',
pause_after: 1500, pause_after: 1500,
}, },