Monday | December 24, 2007

Merry Christmas!


Dear All,

we have prepared a little xmas gift for you today :-)

playfile recfile

the 2 command-line apps for recording and playback of wave files, that will be used as Audio basics for the future. Two files exclusively written for the Touch. They do not work on the iPhone. They support multiple audio sampling rates, just try them. There is no GUI yet, but if anybody is interested to use the code and to make a nice Audio Recorder, Player, Editor (that could play back while recording!!!) is welcome to contact us!

UPDATE : 9:12 PM CET

there is also a simultaneous playback-record function available, you can test it by downloading the executable, and invoking it by

./playrecfile existing.wav new.wav

"What is it good for?" you are asking. Imagine playing back a Metronome stream, while recording the drums. Then playing back the drums, while recording your piano, bass, guitar, flute. Imagine having the basics for a multitrack recorder. Imagine a studio in your pocket with 16GB flash storage!!! Yess, we are looking for GUI developers. And we are willing to do the cables and guitar preamps ;)

We would also like to emphasize that from a technical point-of-view it proves our ability to reach full duplex audio while all other Apps (Nikotalkie/ Vnotes, etc) do not support it. That's a Milestone we just reached, folks!


First a little HowTo:
1. put the files inte the iPod's /Applications directory by using any scp tool
2. open a terminal on the iPod (if you do it through the PC you will need 
to ssh into your Touch) and do the following in the terminal:
   cd /Applications
chmod +x rec* play*

3. start the recording as shown:
./recfile test.wav
4. Check the file 
./playfile test.wav
5. try to transfer the wav back to your PC over scp and check its' quality. 
It is not too loud - we know- but it could be boosten in SW, 
as the quality must be ok!!! 

6. now you can also try to record while playback, existing.wav must exist!!
      ./playrecfile existing.wav new.wav
Ok, here is a recording sample to show you the sensitivity of the mic you build:


... and here it's amplified version (you can use Audacity -a free Audio Editor -
for example to do this amplification until we have it in the SW):


For the non-believers: the original wavefile recorded on the Touch 
and the amplified one. Pls note that there is almost no noise, meaning
that SW-based amplification is not a problem.


Ack: We would like to thank everybody for supporting us by donations, offering HW, SW and PR help and web-design! Thanks for your great work of making logos and your feedbacks on collecting the HW part numbers. Thanks for pushing us to the limits by showing your faith and exhortation!

Merry Christmas to everybody!!

The Touchmods Team:
Eok, Marian and Samuel
Posted by mrn at 14:48:16 | Permanent Link | Comments (14) |
Comments
1 2
1 - Thanks for the tools, however I tried them on an iPhone and they didn't work... I was under the impression that your VoIP app would work for the iPhone too :(

I tried them on an iPod Touch without a Mic, and it worked fine (of course the sound file was blank, but it didn't have any errors. The iPhone errors are as follows:

# ./recfile wav.wav
09:33:40.324 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
09:33:40.343 pjlib select() I/O Queue created (0x808214)
09:33:40.443 wav_writer.c File writer 'wav.wav' created: samp.rate=8000, bufsize=4KB
09:33:40.456 ipodsound.c Starting capture stream error 1852797029
09:33:40.457 ipodsound.c Attempting to rehabilitate audio...
09:33:40.474 ipodsound.c Starting capture stream error 1852797029

xmas-test-version from touchmods team

Recording wav.wav..

Press <ENTER> to stop recording and quit
(Then I pressed enter)
09:33:51.497 ipodsound.c Stopping capture stream
09:33:51.729 Pool is not released by application, releasing now
#

# ./playfile test.wav
09:31:49.260 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
09:31:49.336 pjlib select() I/O Queue created (0x808214)
09:31:49.338 playfile.c Unable to use WAV file: Not a valid WAVE file (PJMEDIA_ENOTVALIDWAVE) [code=220180]
#

I hope you can fix this and make it work on the iPhone! (Comment this)

Written by: AriX at 2007/12/24 - 16:34:25
2 - Thank you for your great work,and merry Christmas !!! (Comment this)

Written by: Unicum at 2007/12/24 - 17:39:02
3 - AriX,

This version work on ipod touch only.
I didn't add the code for iPhone ;-)

Samuel (Comment this)

Written by: Samuel at 2007/12/24 - 18:13:28
4 - Seems as if everything is in working order. Great work guys. No mic yet and cant hear but no errors!!



# cd /Applications
# chmod +x rec* play*
# ./recfile test.wav
01:00:38.656 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
01:00:38.667 pjlib select() I/O Queue created (0x808214)
01:00:38.676 wav_writer.c File writer 'test.wav' created: samp.rate=8000, bufsize=4KB

xmas-test-version from touchmods team

Recording test.wav..

Press <ENTER> to stop recording and quit

01:03:06.176 ipodsound.c Stopping capture stream
01:03:06.751 Pool is not released by application, releasing now
# ./playfile test.wav
01:04:37.601 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
01:04:37.612 pjlib select() I/O Queue created (0x808214)
01:04:37.613 wav_player.c File player 'test.wav' created: samp.rate=8000, ch=2, bufsize=4KB, filesize=4718KB
Playing test.wav..

Press <ENTER> to stop playing and quit
01:07:27.655 wav_player.c File port test.wav EOF, rewinding..
01:09:54.856 wav_player.c File port test.wav EOF, rewinding..

01:09:56.513 ipodsound.c Stopping playback stream
01:09:56.589 ipodsound.c Disposing playback stream
01:09:56.714 Pool is not released by application, releasing now


Just curious. Where would the file be located on the touch.
Thanks for all of your hard work and time.
Merry Christmas and Happy Holidays!!!

 (Comment this)

Written by: Stuart at 2007/12/24 - 18:16:51
5 - Do we need these files on our ipod touch for the voip?

Thanks (Comment this)

Written by: camvick at 2007/12/24 - 18:28:31
6 - Samuel,

Thanks for the response. Is the final version going to work for the iPhone too? (Comment this)

Written by: AriX at 2007/12/24 - 19:14:35 in reply to: 3
7 - Nevermind. I found where the wav file went. I ended up in the applications folder.

Great work. Can't wait to hear it in action.


ANYWHO. . .

It is now christmas day my time. Soooooo.

MERRY CHRISTMAS AND HAPPY HOLIDAYS. (Comment this)

Written by: Stuart at 2007/12/24 - 19:50:59
8 - Does anyone know a quick and dirty way we can boost the volume now? I can't tell if my mic sucks or it's really supposed to be this quiet.

if i yell into the mic, with the laptop volume all the way up plugged into a stereo all the way up, i can here myself as if i was talking softly. (Comment this)

Written by: RadicalxEdward at 2007/12/24 - 21:37:26
9 - RxE, check out Audacity,
http://en.wikipedia.org/wiki/Audacity

and the images I just added above demonstrating the volume boosting. You just load the wave file, mark it by Ctrl-A, click on Menu > Effect > Amplify > OK. and play again ;)

Cheers! Mrn
 (Comment this)

Written by: mrn at 2007/12/24 - 22:21:33
10 - Whose logo was chosen? (Comment this)

Written by: Anonymous at 2007/12/25 - 00:04:19
Write a comment






1 2