Upload sound from user phone

can you help me?
I want to get an audio file from my phone and save it to TinyDb in the app, like working with block
ImagePicker, I also match the image and sound to play back the saved sound when the image appears on the canvas. This is to be done by the user and the user may have stored the sound in the phone memory or SDcard.
What solution do you offer for ease of user uploading audio file.
Thanks for your support and guidance

TinyDB is to store text, but not files…
You might want to store the path to the sound fine in TinyDB…

A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook http://www.appinventor.org/book2 … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

thank you
But I just want the music file path
This is how the user can select an audio file after clicking the music_button and save the file path in a textbox “as a text file with .mp3 extension”

Can’t anyone give me a good solution?
I want the user to click on the button to select an audio file from their phone and click on the audio file to save the file path in a text box "Text"
Please help me
for example:

Thanks :+1:

Many people here have suggested you do the tutorials to learn how to use AppInventor…



But this is done manually and has nothing to do with my problem
I want the user to do this, otherwise uploading the file to the app by myself is not a complicated task.
Please provide at least one source that is relevant to this issue if you cannot help.
Awaiting your guidance

I was able to get the solution to call and image
I use the same method for music
But please help guide beginners and short code snippets with live example and image
Like studying in school
As powerful programmers, you can introduce other people to both the books and the code snippets they need.
This will help those who have difficulty reading English, and I would eventually suggest translating the site to common languages ​​around the world so that people like me do not need a Google translation every time they read books.

please do the tutorials and you will be able to help yourself

we are here to teach you, how you can help yourself, see here App Inventor: How to Learn | Pura Vida Apps
and use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

use the activity starter, see an example here


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


I have used your guidance and thank you
But the problem is not yet fully resolved.
I want the user to be able to save a photo and a sound to the software.
I used lists and variables a lot but still couldn’t get the outline.
Thank you in advance

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

I uploaded some images along with the sound of the animals and their images are displayed intuitively and the second button is played.
Now I want the user to be able to add an image to the list and customize it to fit the image (customize it)
I have been able to delete the photo and save the photo, but I have not yet been able to create a personalized space for the user to set the photo and sound.
thanks for your help


o /system/media/sound/{notifications|ringtones|alarms}

Do you understand what I mean ?!

quieres saber la ruta que busca el telefono cuando uena el ringtong

use the image picker together with an add list item block from the list drawer to add the image to the list
you might want to store the list in TinyDB, so next time the users opens the app, the image is still there

it would help to do some more tutorials to learn the basics... you already got sufficient links and tips where to find the tutorials...


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

User-imported photos are a part of the job, the most important thing is choosing a music for the image.
Example :
if canvas1.backgrandimage = tiger.jpg then
sound1 = tiger.mp3
sound start
end if

From the activity starter with the previous description you can call the image and sound files but equalizing the image and sound is my main problem
Have you ever created a program with this method that can be modeled?

use the split block to split the image name by . to get a list of 2 items, then use the select list item block to select the first item, which is "tiger" in the example, now use the join block and join this together with text ".mp3" and you got the sound name

did I already mention, that it would help a lot to do the tutorials?
these are very basic questions and doing the tutorial helps you to understand the basics...


Yes you are right
But let me admit that I have to use Google translator every time I read and do it, and the more basic problem is that using translator words and descriptions is undesirable and further confuses me.
But apparently there is no solution, and I have to keep going
I’m still struggling with the blocks and trying to get your tips
Thank you very much and wish you all the best

I just explained the solution in detail, now it's your turn...