My brief history and purposes, I have several friends who are blind, and I would like to give them a gift that facilitates their day to day, I have worked hard to create a wall clock, that when they clap, this clock tells the time ... but this clock is tied to "preset" audio files. For me it would be a great achievement to make this project available for any language.
The intention is to "automate" the download of certain audios using keywords / phrases using an Internet connection and save them to a microSD card for later use when this Wi-Fi connection is not available. This would speed up the "audio build" process for applications that require "prompts" just like commercial ALEXA devices do.
I'm working with the "google-tts" library that automatically generates links in this format:
https://translate.google.com/translate_tts?ie=UTF-8&q=hello+everyone%21+i%27m+a+newbie&tl=en&client=tw-ob&ttsspeed=1
https://translate.google.com/translate_tts?ie=UTF-8&q=It%27s+half+past+five+in+the+afternoon&tl=en&client=tw-ob&ttsspeed=1
Is there a way, given a specific link, to download that content directly to an SD card?
----------
functions that I have already managed to do:
- List with predefined words / phrases (example: It is 5 in the afternoon).
- Automatically generate an index (plain text), anchoring text and audio for later use (example: word_3 -> 3.mp3, word_4 -> 4.mp3 ...).
- Given a word / phrase that does not exist in the index, generate a link from google translator (done), download audio and add it to the index (not done)