[SOLVED] Sound Recorder app - Nook Touch General

I think I missed something somewhere. I have working USB audio and I have the Sound Recorder app (thank you Renate!). Today my little mic arrived. I started things going, checked to make sure the USB audio device was recognized, plugged in the mic and started the Sound Recorder app.
"No device"
So.......I'm guessing that there is something over and above what is required for audio that I have missed somewhere?

nmyshkin said:
I think I missed something somewhere. I have working USB audio and I have the Sound Recorder app (thank you Renate!). Today my little mic arrived. I started things going, checked to make sure the USB audio device was recognized, plugged in the mic and started the Sound Recorder app.
"No device"
So.......I'm guessing that there is something over and above what is required for audio that I have missed somewhere?
Click to expand...
Click to collapse
I haven't gotten quite as far as you with the audio stuff (since I've been busy with school, I haven't done any sound recording testing yet), but let me do some research, and I'll try to get back to you.

You gotta dig deep.....
So here's how it's done:
1. Make sure ALSA utilities are present in /system/bin (chmod 755)
2. Extend permission to your audio device by modifying /system/etc/permissions/platform.xml
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
[B]<group gid="audio" />[/B]
</permission>
This solves the problem with the Recorder.apk which uses ALSA entirely, bypassing the Android system. Unfortunately it does nothing for other apps which might like to use the mic like Skype or other recording apps.
That's a whole different thing. This is what Renate suggested as the requirements:
"For basic recording or Skype
Modify /system/lib/hw/libaudio.so
Code:
[00009188] B1 F5 FA 54 => 70 BD 00 BF
[000091EC] 6C 33 => 00 05
Patch /system/framework/framework.jar with AudioRecord.smali using mergesmali, in her signature, in Nook121patch"
My libaudio.so was in /system/lib so I placed a second copy in the directory listed above after I got no result.
I did these things to the best of my ability, and although I didn't get into a bootloop or brick situation , I also had no joy

I'll have to look into this again.
The Nook really didn't have the performance or the memory to do any long pro recording without dropping some samples some time.
The more modern devices I use don't have the same libs.
Where is it not working?
Those patches all do different things, some of them are more performance or sampling rate or whatever.
Can you get audio to play a wav file using aplay?
I have a note that this can be used to test record.
(Your arecord could be named whatever.)
Code:
arecord --disable-resample --disable-channels --disable-format -r 44100 -c 1 -f S16_LE -t wav -d 5 /sdcard/test.wav

I'm not sure I understand how to use that line of code. AFAIK I don't have "arecord" anywhere and it does not work as either an ADB or shell command. Or is it preceded by "aplay"?
Anyway, I can certainly play a wav file using the player from ES File Manager. Playback works in all cases, including wav files generated from your Recorder app.
What does not work is any other sort of recording app like Skype or a market voice/sound recorder. I've tried all kinds, including one that actually shows waveforms on the screen. Not sure those squiggles corresponded with anything I was doing with the mic, though.
It is odd because I could swear that playback from some of the market recorder apps often sounds like there is a VERY slow playback of a voice, albeit low volume. Lots of other low-level noises too, sometimes rhythmic.
I remember reading in another posting about buffer issues with something like Skype but I'm not even there as I get no evidence of a recording whatever.
I've checked my asound.conf file, so that's not the issue.

Ha! A partial victory is mine
That business of the really slow playback sound when trying Skype and other recording apps kept nagging at me. Almost like recording at one rate and playing back at another. I have run afoul of that before when using Audacity to edit/merge some separate audiobook files. They all have to be the same rate or you get funny playback rate effects.
So...back to THE source:
"Modify /system/lib/hw/alsa.default.so"
Code:
[00002268] 02 00 00 00 // format
[0000226c] 01 00 00 00 // channels
[B][00002270] 40 1F 00 00 => 44 AC 00 00 // rate[/B]
This is supposed to be for general playback and I just assumed that when I did the USB Host package installation this modification was part of it because I didn't have any playback problems. And it was except for the last change. Now I can record a test call with Skype. Still trying to remember which voice recording apps I tried from the Market that gave a similar effect, but I imagine when I find them they will work also.
Renate, we all love you.

The aplay or a_play or alsa_play are all part of the ALSA utils, a separate package that you can download from somewhere.
I really like the new Nook Glow Plus screen, dislike the frame, the case, the no buttons, the no SD card, the no Bluetooth
and the fact that we are back to square one with USB host mode that doesn't work.

Ah yes
For me the NST remains ideal save for one remaining obstacle: the silly kludge to tame the audio volume after a reboot. Otherwise it does everything I could want in a reader along with some fringe benefits. It's become a truly amazing little device thanks to the many clever people (like you) who have steadily pushed the envelope.
Sent from my Nook Tablet CM 10.21

Related

WM2003PE and MIDI/polyphonic ringtone

This topic seems to get little attention here in the forum and im sure alot of people are interest in it. 8)
As posted here before, WM2003PE support MIDI and polyphonic ringtone, a very cool feature
This is interesting because as far as i know, the XDA's sound hardware is a simple 44,100/16bit DAC. not like the PC souncards which has a chip for FM tone generator or wavetable DSP.
In order for the XDA to play MIDI, there has to be some software part which does that.
There are 2 types of software that can do that. the first one is based on a set of audio samples which are stored in memory and mixed in a different pitch to make music, this method makes a good quality music and uses a relatively low CPU time. but it need alot of memory to store the samples.
And as we know, memory is a precious resource in our PPC, so this method is likely not to be used.
the second method is to produce the music using a software FM synthisizer. this means creating sound waves using mathematical procedure and doesn't need extra memory but uses alot of CPU and music quality is low.
if anyone of you gurus has toyed with this cool feature of WM2003 and can light up the subject, e.g what method is used and how does it sound, what is the size (if there is any) of the sample file.
just a though ... 8)
SoniC

Sms Alerts again

hi guys.
I want to customise my sms alerts, and know it has to be a .wav file and dropped into the sindows folder.
it shows up in sounds and notifications, but always plays silent...
I have tried 11khz with 8/16/24 bit sound....mono/stereo..and always silent!!
yet the files play in WMP. any ideas...or does anyone have a working one and can tell me the exact format of the .wav file?
Thx
52 views and none of you guys have an answer.... dont tell me i've stumped ya
Hi,
As far as I know all .wav files need to be 44100 hz before they can be used as smstones. I had to convert some tones from 8000 hz, 8 bit to 44100 hz, 16 bit before they could be used.
does anybody know how to assign a special sms sound to a contact?
to assign sms sounds per contact you would have to use mortring. it also allows you to customize the ringtone per contact. there's another third party app which allows you to do this...forgot the name though...
mortring is here in this forum somewhere...do a search and it should be there.
Is there any opportunity to have an SMS alert sound been heared through a BT handsfree?
In an intensive urban walking traffic I can not feel the vibration of my device, and miss SMSes and alerts.
well, as per a couple of posts above, I have tried to format the .wav files to 44100 khz, but still silent, could this be a fault?
sms tones
they must be pcm wav files, they work a treat
Hi
Try using a third party software like 'Ringo" by Electric Pocket works like a charm,and you can customize your sms alerts for any number of contacts,hope this helps.
Hi
Try using a third party software like 'Ringo" by Electric Pocket works like a charm,and you can customize your sms alerts for any number of contacts,hope this helps.
Download the WAV file you had into your PC.
Right click on it, select "properties". Select the "Summary" tab.
Click on the "Advance" at the bottom right if you have that button.
You should have the following properties
Bit Rate: 1411kbps
Audio sample size: 16 bit
Channels: 2(stereo)
Audio sample rate: 44Khz
Audio format: PCM
If yours is as above, I have no idea. If not, try to make it the same. I use the "Sound Recorder" software in Windows to do my converting. Simple and easy.

Audible Format Conversion Guide (Say NO! to Mono)

How to convert Audible Format 4 (.aa) to .mp3
Let me be clear, this is not a piracy technique, this is a way to use content you already purchased on Windows Mobile based phones/devices in the way you want to use it.
Do Not Steal Software or Content – it’s theft stupid.
This guide will NOT CONTAIN ANY LINKS
Audible “Support” claims that only format 2, and 3 work on Windows Mobile 5/6 Devices, keep in mind that this is because they lock down their format to their player. Format 2, and 3 are low quality MONO audio formats. Format 4 which is the closest to .mp3 and happens to be stereo is not supported…. That really sucks, nothing like listening to 24 hours of mono audio. I pay for their “service” which entitles me to 1 credit every 30 days, in my case 1 audio book. Who cares what device I play it on Audible, my media card is agnostic and does not have hardware limitations. DRM in general really honks me off, so with that in mind I went all google nuts and put together a way that works for me from a few different sources. A small guide on how to do this below:
Step 1 – Gather Resources
You will need to get the following software/stuff to make this work
1. Current paid for Audible Account
2. AudibleManager Software
3. AudibleMediaPlayerFilter.exe (Used to be available from Audible, but sadly they don’t offer it anymore)
4. Goldwave 5.0.6 (Pay, buy it, it is very good)
5. Lame .mp3 encoder (Free)
6. mp3split (Open Source)
7. A beefy Storage Card (8gb MicroSD in my case)
Step 2 – Uninstall/Install/Select/Convert/Split
1. This assumes that you have already downloaded your audio book/books and that you have installed AudibleManager. If you have not done so, install AudibleManager and download your media. Make sure it is format 4.
2. Shut Down AudibleManager
3. Move your freshly downloaded book to a different directory than the current directory I suggest C:\Audiobooks. In Vista the files will be located in C:\Username\My Douments\Audible\Downloads or something close to that. In XP they will be in C:\Documents And Settings\Username\My Documents\Audible\Downloads.
4. Important – UNINSTALL AUDIBLEMANAGER
5. Install AudibleMediaPlayerFilter.exe, in both Vista and XP you will receive 1 or more .dll errors. No worries here, just Google the .dll files you need, they are freely available. Put them in C:\Windows\System32. Then re-install again and repeat until you have no more errors.
6. Install Goldwave, it will complain that there is no encoder present for mp3, that’s ok, just install it. Now go to the program directory that contains Goldwave, it’s in C:\Program Files\Goldwave. Copy the Lame Encoder files to the Goldwave directory. Now go back to your desktop and run the install again, don’t worry just run it, it will not complain about the encoder this time, if it does, try a different directory inside Goldwave.
7. That was the hard part, fire up Gold Wave. It is a really great piece of software, problem is the newest version no longer supports this feature, so you have to use an older version. I would suggest that you register it, I did. I now use it for all my conversion needs.
8. Go to settings and configure your default audio format, don’t get too crazy here Chief, these files are going to be huge, so set a reasonable bit-rate. The quality of format 4 is not that great to begin with. I use a variable bit rate up to 192kbps. That gives me a file size of around 900mb’s per 8 hours of audio.
9. Select Batch from the toolbar\menu, then add the files you downloaded, remember they are in C:\Audiobooks or wherever you put them.
10. Wait a minute home-skillet, there are no files in that directory, change the selection to “all files” and there you go all your files should be there ready for you to select.
11. At this point it will ask you to enter your Audible account information, once it “authorizes” you can proceed.
12. Once you have selected the files, go ahead and start the processing, it will take quite a while to finish. 8 hours of audio takes about 3 minutes for it to initially read and about 25 minutes for it to convert to .mp3. I have a Quad Core (Q6600) with 4gb of ram and the software will use about 1.5gb of memory and all 4 cores. I also did this same process on a Core2 Duo (2.13Ghz) machine with 2gb of ram, it took the same amount of time.
13. Ok, processing is done, install mp3split. I suggest you split the files into 30min segments, it’s pretty straight forward, if you need help there are tons people using this program, just go to Sourceforge and look around.
14. That’s it you are done, you just have to move the files to your device of choice. FYI it will take forever if you are going to do this via Activesync (40-50min). I suggest a card reader.
It seems more complicated than it really is, once you have it up and running it’s pretty painless, just takes a while
Other Method -- The Analog Hole
*Disclaimer* this takes forever, it’s one to one, so 8 hours of audio will take 8 hours to record, plus conversion time.
Programs like Tunebite don’t do anything special that you can’t emulate with open source software like Audacity. It is very much like the olden days of yore where you had to tape stuff off the radio.
1. Download and install Audacity, Lame Mp3 Encoder, AudibleManager and your Audiobooks.
2. Start Audacity, for source select “what you hear” then hit the record button.
3. Start AudibleManager, and play your Audiobook.
4. Go back to Audacity and check your levels, make sure you are not clipping. If the audio goes into the red too often your recording will sound like doggie poop. You may have to start over a few times to get it right.
5. I suggest you unplug your speakers and go take a nap, play some 360, whatever, just make sure you come back by the end of the book.
6. Save the file you recorded as a .mp3 file, wait for it to finish (it will take a while), then split the files if you so desire.
7. Transfer the files to your device.
Pro’s
*The files you end up with are DRM Free and can be played back on anything capable playing .mp3 files.
*You don’t have to use .mp3 if you don’t want to, you could use ogg for example.
*You can pick any splitting point you like to save space on your device.
*You don’t have to use their player, which saves memory.
Con’s
*The difference in file size between .aa and .mp3 is significant, .aa is around 100mb for 8 hrs of audio, while the mp3’s are about 700-900mb. Hopefully Audible will change their mind and add format 4 to Windows Mobile devices, until then this is what I have to do to listen to stereo audio books on my AT$T Tilt.
*It takes some mucking around with .dll files, google, and reading skills, I know some people want an all inclusive piece of software that does this.
You loose the book art and the book-marking feature of the Audible Player. (use your favorite media application to add any art you want)
Bonus Tip#1 – Install software like File Renamer and cut down the filename length and remove your username from the file name, it will make it much easier to read on your device.
Bonus Tip#2 – Use different media players for different things, I use HTC Audio Manager for audio books and S2P for regular .mp3 files.
Bonus Tip#3 – Put your music in a different folder than your audio books, it helps keep everything organized.
Bonus Tip#4 – Keep your purchases DRM FREE, use Amazon for music instead of iTunes. Support the EFF, and don’t steal music/content/software.
This is in no way my work, just a compilation of other techniques I found using Google. Wait, what’s a Google? Seriously, how did you get here without using Google? I know Live Search and Yahoo are very “neat” looking, but for serious searching please use Google.
what a great help
I got to say i was kinda hesitant but made a stab at it anyway. I have the tilt also bought bluetooth headset for audio books. Went to audible paid subscription set it up downloaded it and F#[email protected][email protected] only receive book in mono. Listening to an eight hour book on headset with one speaker working is a joke. I followed your instructions all the way to the lame encoder. got a little lost just converted file to wma which i hope will work on mobile 6 i have a 8g card so if i have a problem i will split it with suggested software. Just want to take the time to thank you for the thoughtful insight on this subject. What a joke having paid for the audio book and have to listen to it in mono. The instructions were extremely easy to follow and well thought out. Except the part of mp3 encoder from lame to goldwave cant get it to work but nonetheless a great help to me and i am writing just to say thanks...............keep up the good work.............
Or you can just wait for the next Audilble Player to come out... which will have BT stereo and level 4. The closed beta is being worked on already.
I am plannng on a quick rewrite of the guide soon, I can,t wait till Audible releases a new player. I love the service, but I really hate the current player.
Well it's been years. I think this post should be deleted as the information is pretty much irrelevant. I hope it helped someone in it's day.
Thanks!
itrooper
aa to mp3
personally I think, that TuneConverter is a better software for this purpose. First of all it converts without quality loss, it supports all the most popular formats like aa, aac, m4a, wma and it can easily strip iTunes, Zune or Wal-Mart...
This is why I advice just to give it a try.
Do you have a link for TuneConverter?
I usually go the complicated way of:
- download as Format "4"
- write to CD (virtual CD), which includes the titles as CD Text
- rip CD(s), converting tracks to titles from CD Text
Audio quality is just bearable with format "4" (I guess ~32k mp3), but the path of ripping to CD is the only one if you don't want to have iTunes installed.
To deal with the Audible AA to MP3 conversion, you can use TuneFab Apple Music Converter. As an excellent audio DRM removal, it has the ability to remove DRM from the AA audiobooks and convert protected AA to MP3, FLAC, M4A, etc. for making AA files available on any media player and device. Better still, the original ID Tags and chapter info will be preserved in output MP3 or M4A files while converting.
What I used to convert Audible audiobooks is this one, but it is not a freeware. If necessary, you can try it from it's website.
T
I have tried the software, but most of them can't keep the original quality of Audible files.
Currently, I used the DRmare Audiobook Converter for Mac. It seems it the software that is most closest to it.
I will give a try soon my friend also recommend me another one calls Tunelf Audible Audiobook Converter ,seems have similar function.

[Q] Utilizing multiple ALSA devices

How can I stream audio within an app between specific ALSA cards/devices? Can I use the tinyalsa api directly, or will that interfere with android's system services? I have 2 USB sound cards, one with input/output, and one output only. I want my app to take audio from the input on one, and send it to the output on the other. I can use aplay to capture / play on the cards, so I know it's possible, I just don't know the best way to go about it. It looks like the PCM card and device are hardcoded to 1, 0 respectively in audio_hw.c. So it seems like the only thing to do other than modifying that file is to directly use tinyalsa to pcm_open, etc.
I've also looked at OpenSL ES, but it isn't clear how to select any input or output paths other than the defaults.
I've tried an app, UsbAudioTester, that lets me route sound to/from any usb audio device, so it's possible without modifying any of the framework.
So even though alsa_aplay works, using tinyalsa's api (pcm_open, pcm_write, etc). Fails with "unable to set sw params: invalid argument". I think I'll look at the source for aplay and work backwards from there.

[Q]How to rip streaming music radio app

I have an Online Radio App and would like to add some sort of recording feature on it. I have done quite a bit of research and found one solution and from what I understand maybe the only solution is to rip it byte by byte. I have also tried to use the built in android recording method but it only records from the mic and I do not know or cannot figure out how to record from an external source such as a url like http://92.68.34.221:7000. Currently I am using the default Android media player method to play the url and its working flawlessly problem is I would like to set up the recording feature as a service to where when a the button is clicked run the service start recording and when it is clicked again terminate the service and save the file in a folder called online radio. Button might end up being a ToggleButton. I would really appreciate it if anyone could help me out and steer me in the right direction. Thanks in Advance
Saving a stream to file is quite easy, but if you want to define the exact start and end point of saving/recording by a button click it gets difficult.
You'll have to change your implementation a lot. Your android mediaplayer class handles everything for you, it opens the stream, fills a buffer and starts playing when the buffer is full. The mediaplayer doesn't offer any access to the bytes that it received.
Next problem: If you click on the button to start recording, the bytes you are listening to, have been in the (internal) buffer for an unknown amount of time. So you can't just open another connection to the stream url to start saving the bytes.
I would try it this way:
Implement these three parts in three different threads.
1. Use android.media.MediaExtractor to open the stream and implement a ringbuffer to store the extracted bytes
2. Use android.media.MediaCodec to decode your stream to pcm.
3. And use android.media.AudioTrack to play the pcm stream
Choose the size of the ringbuffer as large as the buffer of the AudioTrack. (Size in seconds, not in bytes!)
When the user clicks on the record button, you can read the data out of the ringbuffer, (encode them back to mp3 or something else) and save them to a file.
Not very easy for a beginner, but its a way you can do it.

Categories

Resources