ok, let me explain better why dynamic is my only option.
i made a web with the bible that uses web speech aAPI and each chapter is on its own url.
so i created a js to send specific chapter data (excluding header/footer texts) and send chapter content to localStorage…
if i use serverData, i would need to insert whole bible in just one file… or create 1090 files with each chapter.
so i need TTS button to read dynamic content or specific content from the DOM like class=“read” innerText
this type of configuration would make thunkable UNIQUE, i have spent lot of money paying others just for that and no one yet have being able… i endede using thunkable as last option cause chatGPT always recommended everything except this… i did a very deep research to find thunkable and test it… i like it over SAP immediately…
i know i can do anything here… but the TTS has being a big head-ache for me, lol.
I’m not sure how to help you with that but if I was doing anything with Text-To-Speech, I would be using Eleven Labs or Google Text to Speech and using the API to generate the speech from the supplied text.
Those instructions are for using a Google Sheet or Airtable database. If the data is part of an API, then you would get the JSON response and create rows in a Thunkable data source. If it’s somewhere else… then you need to figure out how to get that data.
This is because “data” is an object with two properties: “capitulo” and “titulo”. So to get either of those values, you would need to get the property “data.capitulo” or “data.titulo”.
ok, i manage to read sub-data, i set name Bible as main name (not “data”),
but it reads literally: Title, Chapter, Verses…
but still figuring out how to read inner data from those.
i tried “Biblia.TĂtulo” but got nothing… still learning…
In the “then do” section of the Web_API block, set a variable to the get object properties of blocks instead of using the say block. Then, set a label’s text to the variable. And then say the variable.
That way you see the text that is returned and you hear it. If one of those doesn’t work (or both don’t work) then you have new information about what might be going wrong.
It works in a browser and in Thunkable Live on an iPhone 13 Pro but the value of “Biblia.TĂtulo” is “” (empty) on both. Can you create a value for that property?
sir… thanks to you… i was able to do a great advance
it seems json is still not updated when button extracts json,
thats why it was empty (cause i did it like that) but i fixed it (thanks)
BUT on console, json is updated by a js function and i always see the edited result
if we manage button to read data after loading full website,
so he can read updated json… we finish!!!
DA BOMB!!! cause the updated json will by totally dynamic
depending on which chapter im reading… insane!!!
i sent example of button in english and spanish working nice!
I don’t know. I’m sorry but I don’t have experience with getting data from an API I created. I always refer to the documentation for the API I’m using.