I want to build an app which contains Listviewers each Listviewer contains sentences by making csv files with precise start and stop times for each sentence by highlighting each sentence.
the csv has three items:
Column 1: A number of ListViewer
column 2: mp3 sound
column 3 : a link of download mp3 sound
column 4 : for start and stop time for sentence with highlighitng each sentence.
In anticipation, I have prepared a working demo that uses a text of 12 sentences, a sound file of the text, and a list of timings. These are combined with a textbox and a clock timer to read and highlight each sentence. Also provided is a font size changer to increase or decrease the font size of the text.
You should be able to build up your book/reader app using this structure.
The text is taken from the first chapter of Robinson Crusoe by Daniel Defoe. Most of you will probably know the main story, but the book provides so much more both before, during and after being shipwrecked on a desert island! I recommend this book to you.
I used an online text reader to generate the sound file, recording the passage to my computer using linux tools (yad/lame/sox).
Tested using companion 2.62 on Android 10 and Android 12.
That's awsome!
I just wonder why when I select any sentence in the middle of the story it just read that selected sentence and stop at the end of that sentence while the story hasn't completed yet (This option fine don't delete it) . I just need to add one more option read the next sentences until finish the story.
Good job Tim!
Thank very much.
These are the csv for both of a text and mp3 sound and consider that I have 40 Texts and 5 readers for each text 1.csv (771 Bytes) 1soundlinks.csv (1.5 KB)
If it is possible you can highlight a sentence with yellow color and leave the next one without highlight for all texts to be much better in seen before start reading and when start reading the highlight color could be green color. like this:
Possibly....it might be better to just break up the sentences/phrases with a line break or two...
I am trying to avoid going back to html, or adding further complexity by using labels or dynamic components.
I am however having issues with your example text csv file 1.csv.
If I treat it like a csv like a csv (in order to separate the number from the text) then it outputs in App Inventor as a list like this (because there are commas in the text)
There is a word at the end of each line (which appears to translate to "party" in English)
If I just display the contents as text it looks like this:
Do you have a standard content and a standard format for your text csv files, or how do you want to handle this. All the text can be wrapped in double quotes for there to be two elements, the line number, and the text in one sublist. This needs to be resolved before any other work.
What you have sent through is not really helping. The csv content needs to be standardised. If we want to show the number, that is element (index1) which other elements of a line in the csv need to be displayed, index2, or all indexes after the number.