tag:blogger.com,1999:blog-17460203.post5385550825003529801..comments2024-02-21T09:18:08.330-08:00Comments on Technoracle (soon to be Canadian Cybertech): Tutorial: Accessing Microphone on Android in Adobe AIRDuane Nickullhttp://www.blogger.com/profile/08767498160563891543noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-17460203.post-54236897516048500092013-08-29T09:43:15.859-07:002013-08-29T09:43:15.859-07:00You can control the gain on the raw microphone its...You can control the gain on the raw microphone itself. Set up your microphone variable, then give the gain property a value between 0 and 100, 0 being complete mute.<br /><br />private var mic:Microphone;<br />mic.gain = 43;<br /><br />I usually tie the gain to a slider control to give the recorder the ability to adjust this for a device. You would want an audio meter showing signal strength then set the signal to around -6 to -12 db. This takes a bit of audio engineering.<br /><br />DuaneDuane Nickullhttps://www.blogger.com/profile/08767498160563891543noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-41671452283704300592013-08-29T02:31:56.636-07:002013-08-29T02:31:56.636-07:00Hi Duane,
Thank you for a wonderful insight into ...Hi Duane,<br /><br />Thank you for a wonderful insight into accessing the microphone on android. Both capture and play back are working fine. On some of the android devices when I am using full duplex, the capture audio from the speaker is getting clipped and distorted. When nearend audio is getting captured that time captured audio is coming fine. To avoid the clipping I tried with reducing the speaker level, the audio level is not audible. So I want to reduce the microphone level, how to do this. Any insight into this will be greatful.<br /><br />Thanking you, <br />ksam Anonymoushttps://www.blogger.com/profile/03074475982777919523noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-70026530403267063412013-08-29T02:31:13.481-07:002013-08-29T02:31:13.481-07:00Hi Duane,
Thank you for a wonderful insight into ...Hi Duane,<br /><br />Thank you for a wonderful insight into accessing the microphone on android. Both capture and play back are working fine. On some of the android devices when I am using full duplex, the capture audio from the speaker is getting clipped and distorted. When nearend audio is getting captured that time captured audio is coming fine. To avoid the clipping I tried with reducing the speaker level, the audio level is not audible. So I want to reduce the microphone level, how to do this. Any insight into this will be greatful.<br /><br />Thanking you, <br />ksam Anonymoushttps://www.blogger.com/profile/03074475982777919523noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-71674711014149948782011-10-17T07:15:43.227-07:002011-10-17T07:15:43.227-07:00yes - it runs on iOS but you need to ensure the pr...yes - it runs on iOS but you need to ensure the project is set to compile into the native machine code and also get an Apple developer certificate and provisioning file.<br /><br />DuaneDuane Nickullhttps://www.blogger.com/profile/08767498160563891543noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-27166024242306346302011-10-13T14:01:02.563-07:002011-10-13T14:01:02.563-07:00hello Duane
any success running this code on ios?...hello Duane<br /><br />any success running this code on ios?<br /><br />thanx<br />SaarSaarikohttps://www.blogger.com/profile/05865547428028827871noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-84612592825446492011-10-04T14:26:41.315-07:002011-10-04T14:26:41.315-07:00hey Duane
my simple mobile record-playback microp...hey Duane<br /><br />my simple mobile record-playback microphone audio app works great on android but on ios a half of second or so of audio is missing from the beginning of the recording (i guess the recording starts late)<br /><br />have you tried your code with ios?<br /><br />thanx<br />SaarSaarikohttps://www.blogger.com/profile/05865547428028827871noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-25517699592626097512011-08-10T09:00:09.516-07:002011-08-10T09:00:09.516-07:00Can you send me your email to dnickull at adobe do...Can you send me your email to dnickull at adobe dot com and I will send you the latest I have. it "almost" works.Duane Nickullhttps://www.blogger.com/profile/08767498160563891543noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-58607432452790882222011-08-09T23:48:12.517-07:002011-08-09T23:48:12.517-07:00Thanks Duane. I saw that post, and Christoph says...Thanks Duane. I saw that post, and Christoph says that the mp3 compression is quite slow. Seeing as Corona has the ability to save recordings as mp3 and iOS natively supports compressing with AAC, I was hoping there was a similar solution in Flash. But maybe I just need to try out Christoph's solution and see if it works for my needs.<br /><br />Cheers,<br />AdrianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-17460203.post-49279513424332626582011-08-09T17:04:44.287-07:002011-08-09T17:04:44.287-07:00Yes there is. Christoph Coenraets first made one ...Yes there is. Christoph Coenraets first made one which I can share the source with you. Mine is writing floats instead of bytes so it has a small bug right now. Michael Chaize extended this idea and used the MP3 compression. The article is here:<br /><br />http://www.riagora.com/2010/08/air-android-and-the-microphone/<br /><br />DuaneDuane Nickullhttps://www.blogger.com/profile/08767498160563891543noreply@blogger.comtag:blogger.com,1999:blog-17460203.post-34790805081272927452011-08-09T16:52:42.755-07:002011-08-09T16:52:42.755-07:00This video and the source code have been really he...This video and the source code have been really helpful to me. One thing missing is what to do with the audio in the ByteArray once it has been created. I would really like to be able to store the data somehow to the mobile device. I see some people are using the WavEncoder library to convert the ByteArray to a WAV file. There are plenty of native iOS voice recorders that save as mp3 files. Is there any good way to compress the data for local storage?<br /><br />Thanks,<br />AdrianAnonymousnoreply@blogger.com