forked from organicmaps/organicmaps
[tts] Remove languages.hpp generation and move sound.txt to omim/data
This commit is contained in:
parent
87b4aa5bd4
commit
4a4899e5ea
3 changed files with 1 additions and 55 deletions
|
@ -1,49 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include "std/array.hpp"
|
||||
#include "std/string.hpp"
|
||||
|
||||
// This file is autogenerated while exporting sounds.csv from the google table.
|
||||
// It contains the list of languages which can be used by TTS.
|
||||
// It shall be included to Android(jni) and iOS part to get the languages list.
|
||||
|
||||
namespace routing
|
||||
{
|
||||
namespace turns
|
||||
{
|
||||
namespace sound
|
||||
{
|
||||
array<string, 28> const kLanguageList =
|
||||
{{
|
||||
"ar",
|
||||
"cs",
|
||||
"da",
|
||||
"de",
|
||||
"el",
|
||||
"en",
|
||||
"es",
|
||||
"fi",
|
||||
"fr",
|
||||
"hi",
|
||||
"hr",
|
||||
"hu",
|
||||
"id",
|
||||
"it",
|
||||
"ja",
|
||||
"ko",
|
||||
"nl",
|
||||
"pl",
|
||||
"pt",
|
||||
"ro",
|
||||
"ru",
|
||||
"sk",
|
||||
"sv",
|
||||
"sw",
|
||||
"th",
|
||||
"tr",
|
||||
"zh-Hans",
|
||||
"zh-Hant"
|
||||
}};
|
||||
} // namespace sound
|
||||
} // namespace turns
|
||||
} // namespace routing
|
|
@ -11,10 +11,5 @@ $TWINE generate-all-localization-files --format apple "$OMIM_PATH/strings.txt" "
|
|||
$TWINE generate-all-localization-files --format apple --file-name InfoPlist.strings "$OMIM_PATH/iphone/plist.txt" "$OMIM_PATH/iphone/Maps/LocalizedStrings/"
|
||||
$TWINE generate-all-localization-files --format jquery "$OMIM_PATH/data/cuisines.txt" "$OMIM_PATH/data/cuisine-strings/"
|
||||
$TWINE generate-all-localization-files --format jquery "$OMIM_PATH/data/countries_names.txt" "$OMIM_PATH/data/countries-strings/"
|
||||
$TWINE generate-all-localization-files --format jquery "$OMIM_PATH/data/sound.txt" "$OMIM_PATH/data/sound-strings/"
|
||||
#$TWINE generate-all-localization-files --include translated --format tizen "$OMIM_PATH/strings.txt" "$OMIM_PATH/tizen/MapsWithMe/res/" --tags tizen
|
||||
|
||||
# Generate sound tts files.
|
||||
SOUND_DATA_DIR="$OMIM_PATH/sound/tts"
|
||||
LANGUAGES="$OMIM_PATH/tools/python/tts_languages.py"
|
||||
python "$LANGUAGES" "$SOUND_DATA_DIR/sound.txt" "$SOUND_DATA_DIR/languages.hpp"
|
||||
$TWINE generate-all-localization-files --format jquery "$SOUND_DATA_DIR/sound.txt" "$OMIM_PATH/data/sound-strings/"
|
||||
|
|
Loading…
Add table
Reference in a new issue