SoundRecorder1

1965 views
Skip to first unread message
Assigned to taifu...@gmail.com by me

xsilvergs

unread,
Feb 2, 2014, 1:17:04 PM2/2/14
to mitappinv...@googlegroups.com
Please SEARCH in this forum before posting your question.   There's a good chance your question has already been asked.

If you are asking for technical help, you must provide the following information:
- Are you using MIT App Inventor Classic, MIT App Inventor 2, or something else (what?)
- What OS are you using? (e.g, MacOS 1.8, Windows 8, ...)
- What browser are you using (e.g, Chrome version 30, Firefox 24, IE 8, ...)
Also provide as much information as you can, such as screenshots and instructions that will let others duplicate the issue.
Built: February 1 2014 Version: v134
Windows 7
Chrome Version 32.0.1700.102 m

I'm very new to this and would like to use the SoundRecorder but have no idea how it works and unable to find any examples. Any help would be much appreciated.

I have tried having 2 buttons:
Button1.Click SoundRecorder1.Start
Button2.Click SoundRecorder1.Stop

but that's as far as I've got.

Many thanks

xsilvergs 






Taifun

unread,
Feb 2, 2014, 3:03:32 PM2/2/14
to mitappinv...@googlegroups.com
probably the documentation can help?
to play the recorded sound, just use a Player component
you get the path to the recorded file in the AfterSoundRecorded event
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         


 SoundRecorder

Picture of Sound Recorder component

Multimedia component that records audio.

Properties

none

Events

AfterSoundRecorded(text sound)
Provides the location of the newly created sound.
StartedRecording()
Indicates that the recorder has started, and can be stopped.
StoppedRecording()
Indicates that the recorder has stopped, and can be started again.

Methods

Start ()
Starts recording.
Stop ()
Stops recording. 

xsilvergs

unread,
Feb 2, 2014, 3:44:25 PM2/2/14
to mitappinv...@googlegroups.com
Taifun

Thanks for reply. I had seen and read the documentation before my initial post but was still unable to make a successful recording.

I am trying to run it using the emulator but where should I look in the Windows 7 file system to see the recorded file and how is it named?

Sorry for my ignorance if I'm missing something very obvious.

Taifun

unread,
Feb 2, 2014, 4:19:50 PM2/2/14
to mitappinv...@googlegroups.com
the recorded sound file is in the file system of the emulator then

xsilvergs

unread,
Feb 2, 2014, 4:51:26 PM2/2/14
to mitappinv...@googlegroups.com
Taifun

It's been a long day and I'm struggling and feel I'm in a catch 22 situation.

I see nothing in AfterSoundRecorded, is that due to there being no file recorded or some other problem? I don't know! A working example would be nice but I haven't found one yet.

So I thought if I looked in the folder where the recorded file should be stored I'd know if it had actually recorded. Agree? A *.mp3 search of my PC does not reveal the file I'm looking for.  

Tomorrows another day

Taifun

unread,
Feb 3, 2014, 9:35:05 AM2/3/14
to mitappinv...@googlegroups.com
I meanwhile prepared an example for you http://puravidaapps.com/snippets.php#2soundrecorder
Taifun

Abraham Getzler

unread,
Feb 3, 2014, 11:56:15 AM2/3/14
to mitappinv...@googlegroups.com
Working with the file system in the emulator gives me a headache,
trying to remember what is virtual and what is real, and how to get to it.

You have the same problem with your mp3 file.

Try using a real Android device connected thru WiFi or whatever works,
and use one of the many free Android file explorer apps
to go looking for the mp3 file on the real device.

ABG
Reply all
Reply to author
Forward
0 new messages