Skip to content

Commit 10ee14c

Browse files
author
dgiese
committed
Audio Generator small changes
1 parent d2f109a commit 10ee14c

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

devices/xiaomi.vacuum/audio_generator/Readme.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Audio Generator for Xiaomi Vacuum Generation 1
1+
# Audio Generator for Xiaomi Vacuum Generation 1 & Generation 2
2+
3+
# Author: Dennis Giese [dennis@dontvacuum.me]
4+
# Copyright 2017 by Dennis Giese
5+
6+
# This program is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
216
It is possible to create new language files which can be integrated into the rooted firmware. To generate the language files you can use the `generate_audio.py` script in this folder.
317

418
It will read the content auf audio_xx.csv (whereby xx is a country language code like de_de or en_US) and use one of the supported engines to generate mp3 files for inclusion in the firmware. The language codes are the [ISO-639-1](https://en.wikipedia.org/wiki/ISO_639-1) format, so that the engine can use a voice with suitable pronounciation.

devices/xiaomi.vacuum/audio_generator/generate_audio.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/usr/bin/env python3
2+
3+
# Author: Dennis Giese [dennis@dontvacuum.me]
4+
# Copyright 2017 by Dennis Giese
5+
6+
# This program is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
216
import os
317
import csv
418
import glob

0 commit comments

Comments
 (0)