|
|
#1 |
|
Plus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 248
Karma: 32650
Join Date: Jan 2012
Location: Tehran, Iran - Halifax, Canada, Founder of idoiτ Plus (www.idoit.ca)
Device: Kindle Touch 5.1.2
|
Audio recorder and player for KT
![]() I wrote a very simple audio recorder and player. It might help in case you want to record something and you don't have your cellphone handy! Well this has more applications ... O start recording [] stop recording > start playback || stop playback Prerequisites: - usbnetwork - GUI Launcher Install procedure: 0. Do you have SSH access to your Kindle?! If not, read this: USBNetwork 1. extract zip file to /mnt/us/ 2. execute 'restart framework' through SSH 3. Guess what? -> Done! ![]() Karma and happiness to all of you wonderfulz! ![]() Details: Spoiler:
Last edited by idoit; 06-16-2012 at 03:36 AM. Reason: Added noob-friendlier "Install procedure" |
|
|
|
|
|
#2 |
|
Kindle Dissector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 662
Karma: 170549
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Multiple commands requires the use of a shell script.
__________________
For my Kindle related projects, including detailed, technical descriptions: http://yifan.lu/category/devices/kindle/ |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Plus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 248
Karma: 32650
Join Date: Jan 2012
Location: Tehran, Iran - Halifax, Canada, Founder of idoiτ Plus (www.idoit.ca)
Device: Kindle Touch 5.1.2
|
Oh silly me! Well it's 5am so ...
Updated accordingly!Edit: Ahhh damn, not gonna stay up so late anymore. Geekmaster: I forgot to update the 1st post even more, so now I did.
Last edited by idoit; 01-29-2012 at 12:12 PM. |
|
|
|
|
|
#4 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
|
|
|
|
|
|
#5 |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,288
Karma: 4902879
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
You can use these two commands to crank up the recording volume before actually running arecord:
Code:
/usr/bin/amixer sset 'MIXINL PGA',0 100% unmute cap /usr/bin/amixer sset 'Capture',0 100%,100% unmute cap # then arecord The resulting files are still not over-the-top quality, but it's usable for taking spoken notes. I'm attaching a sample (recorded from a computer sitting next to the Kindle, playing at "normal" volume). |
|
|
|
|
|
#6 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
But that microphone will come in handy when we get Skype running on these things, right? ![]()
Last edited by geekmaster; 05-10-2012 at 03:16 PM. |
|
|
|
|
|
|
#7 |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,077
Karma: 3827911
Join Date: Feb 2012
Device: Intel 4004
|
He may have to wait for v-5.2.0 for those.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
#8 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 20390
Join Date: Feb 2009
Device: none
|
Can this be adapted for those non-touch Kindles, such as Kindle 4 and Kindle 3?
|
|
|
|
|
|
#9 | |
|
Plus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 248
Karma: 32650
Join Date: Jan 2012
Location: Tehran, Iran - Halifax, Canada, Founder of idoiτ Plus (www.idoit.ca)
Device: Kindle Touch 5.1.2
|
Quote:
). But I just have Touch, so ...
__________________
Good Thoughts, Good Words, Good Deeds. .پندار نیک، گفتار نیک، کردار نیک (Persian) Zoroaster |
|
|
|
|
|
|
#10 |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,288
Karma: 4902879
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Just a side note: how about updating the file attached in the first post for future readers?
|
|
|
|
|
|
#11 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
I used aplay to play movie output piped from ffmpeg on my kindle. I will publish a script soon to play movies on with sound on your kindles (from local files or internet URLs) in various formats (including x264 for the faster kindles). The K3 is not fast enough to decode x264 in real-time, so it can only play XviD/DivX/MPEG, etc.
Thanks for pointing out this aplay program, or my tools would be stuck with only silent films. The K4 can use aplay to output to a .WAV file, or to pipe it to another program. I think a sound server running on a host PC would be good for a K4. It could then play sound over wifi to a remote sound system (perhaps even to a wifi-enabled smart TV). The simple way would be to pipe aplay to netcat (nc), then on a host PC from netcat to a player program that can accept raw sound from netcat. ![]() And the K3 has aplay built in too. You can test it with: aplay /dev/urandom cat /dev/urandom|aplay To play "s16le" formatted output from ffmpeg, you need to add a "-f cd" to aplay: ffmpeg ... -|aplay -f cd I will post ffmpeg with I have scripts that set all the parameters to sync the video and sound reliably for various movie format. Just like sound is delivered to aplay here, the video is delivered to gmplay used in the current "kindle video" thread. These audio and video programs naturally belong together.
Last edited by geekmaster; 05-12-2012 at 07:12 PM. |
|
|
|
|
|
#12 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
I just tested, and you can still play audio files the old way too (including piped-in network streams). For example, with wifi on, this will play BBC on a K3 or a K5:
wget -O - http://mp32.bbc.streamuk.com | gst-launch playbin uri=fd://0 |
|
|
|
|
|
#13 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 20390
Join Date: Feb 2009
Device: none
|
Quote:
And there are indeed Launchpad shortcuts already to record on the Kindle 3. Actually, the very same commands are also in a Kindlet called K3MusicManager. They are a few variations to the following that use arecord, but these seem to be the best: audio_recorder.ini Code:
[Actions] ; Audio Recorder (stored in 'audio' folder, and playable as audiobook) A E = !kill -15 `pidof arecord`; dbus-send --system /default com.lab126.powerd.resuming int32:1 & A S = !RECDIR=audible; [ -d "/mnt/us/$RECDIR" ] || mkdir -p "/mnt/us/$RECDIR"; arecord -qN /mnt/us/$RECDIR/_record_$(date +'%Y-%m-%d_%H-%M-%S').wav!.mp3 & |
|
|
|
|
|
|
#14 | ||
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 156
Karma: 20390
Join Date: Feb 2009
Device: none
|
Quote:
Quote:
Code:
; play streaming radio - http://www.radioio.com - VOCAL JAZZ K R F = !cd /mnt/us/music ; ../system/kinamp http://76.76.18.101:8010 -quiet -framedrop -vo aa:reverse:contrast=50 -vf rotate=1 -monitoraspect 0.7 2>/dev/null |
||
|
|
|
|
|
#15 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
Your kinamp parameters look like the ones I posted many months ago for using with the optware mplayer, to play streaming VIDEO using "ascii art" mode in the myts terminal. Why do you use those VIDEO parameters with kinamp? Does kinamp support video now too? If so, we should be able to pipe that to my raw2gmv and gmplay programs (using different "better" video parameters). If not, then why are those video parameters on your command line?
Last edited by geekmaster; 07-02-2012 at 02:14 AM. |
|
|
|
|
![]() |
| Tags |
| launcher, launcher add-ons |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GETTING AT the audio "file" I recorded (with Audio Recorder) | Last_of_the_PEs | enTourage eDGe | 0 | 07-13-2011 01:30 AM |
| audio recorder | Careermama | enTourage Archive | 5 | 02-17-2011 02:59 PM |
| How to Stop Audio Player? | kenjennings | enTourage Archive | 0 | 04-19-2010 04:54 PM |
| Classic Audio Player | ssbkt | Barnes & Noble NOOK | 1 | 12-18-2009 11:00 AM |
| Audio Player | rfw | Sony Reader | 5 | 01-13-2007 01:25 PM |