feat(tools): scripts/add_pronunciation.py zum bequemen Pflegen des Aussprache-Lexikons
Fuegt 'wort:aussprache' in config/pronunciation.<lang>.yaml ein (Default Sektion terms). Erhaelt Kommentare/Struktur, aktualisiert vorhandene Eintraege statt zu duplizieren, validiert das YAML vor dem Schreiben. Optional --verify zeigt die espeak-Phoneme vorher/nachher und warnt, wenn die Umschreibung nichts aendert. Doku-Hinweis in BEDIENUNGSANLEITUNG ergaenzt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
449a62a88e
commit
37b14773f2
2 changed files with 149 additions and 0 deletions
|
|
@ -270,6 +270,13 @@ und Abkürzungen („Dr." → „Doktor", „z. B." → „zum Beispiel"). Reine
|
|||
Cloud-TTS `light` (Cloud spricht Zahlen/Abkürzungen selbst gut, daher schonend).
|
||||
- Eigene Begriffe/Fachwörter pflegst du in **`config/pronunciation.de.yaml`** (Abkürzungen,
|
||||
Einheiten, Terms) — erweitert die eingebauten Defaults, ohne Code zu ändern.
|
||||
- **Bequem per Skript** (prüft auf Wunsch gleich die espeak-Phoneme):
|
||||
```bash
|
||||
python scripts/add_pronunciation.py "strömt:ströhmt" # Wort:Aussprache
|
||||
python scripts/add_pronunciation.py Mond Mohnd --verify # zeigt Phoneme vorher/nachher
|
||||
python scripts/add_pronunciation.py kWh "Kilowattstunden" --section units
|
||||
```
|
||||
Danach den Server einmal neu starten.
|
||||
|
||||
## B2. Soundquelle & Ausgabe-Gerät wechseln (Mikrofon, Lautsprecher, Bluetooth, Handy)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue