xml

Making The Game – Teil 14: Wissensbasis und Fragenauswahl / Arbeiten mit XML

The knowledge- or question-base is at the heart of the program. Here are all questions and answers listed by category. Because it should not be required to create audio files for each of these databases, the first lines of the XML file tells the program if the questions are read aloud in the game or only appear textually.                 true      …   (Note: The application and the decision to record all audio parts manually now are six months old. If I would create this app now, I would try a different approach and fall back to a TTS-API, such as the […]

gtts

Die inoffizielle Google Text-To-Speech API

The fact that Googles Translation-Application translate.google.com offers the possibility to readout an inserted text (TTS text to speech), is nothing new. The specialty, however, are the possibilities that arise through this feature.   The data for the audio output is in fact called by a simple HTTP GET (REST) ​​request:   http://translate.google.com/translate_tts?tl=de&q=text     By this request, which provides an MP3 file, can easily realize TTS-applications and works, thanks to the multilingualism of Google’s service, also for many other languages​​. The only drawback to this method is a limitation which allows only a maximum of 100 characters per request.   The main URL parameters in this case, the two for […]