x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

J820 'Voice Recorder'

Mjolnir Page Icon Posted 2019-12-08 10:19 PM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
I had occasion this morning to want to copy some voice recordings I made on my Win 10 laptop to my J820. Those made on Windows are (.M4a)s and while 'Voice Recorder' correctly identified them as such it made no effort to play them. I did a search and came across where Rich had helped a user make a custom ringtone using online resources so, after some trial and error, I thought I'd share the method I used.
I used ffmpeg with the Windows Sub-system for Linux (WSL) to run the following one liners.
ffmpeg -i <infile>.m4a -ar 8000 -acodec pcm_u8 -ac 1 <outfile>.wav
Plays back fine on the J820

and:

ffmpeg -v 5 -y -i <infile>.m4a -acodec libmp3lame -ac 2 -ab 192k <outfile>.mp3
I often embed custom voice recording mp3s in Google Earth .kmz files.


https://www.hpcfactor.com/forums/forums/thread-view.asp?tid=15861&st...
Quote
Yoldering - 2011-03-03 2:10 PM

In the past I have recorded the audio from my desktop to the voice recorder on my MobilePro, then I emailed it back to my desktop and converted it from there. I think Rich's way is a lot easier. I have not had the need to do that for a few years though. Oh, and after all of that work the sound quality was really poor!


and:
post #8

Quote
Rich Hawley - 2011-03-03 3:59 PM

My method was born from necessity...I had no desktop conversion software, so I had to find on-line resources...

What a great way to make your own custom ring tones for a cell phone, eh?
 Top of the page
stingraze Page Icon Posted 2019-12-09 2:33 AM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
nice!

It will be cool if you could make a bash script or perl script that gets input names from stdin and converts in batch to .wav so we can listen music/audio/voice on our H/PCs.

Edited by stingraze 2019-12-09 2:34 AM
 Top of the page
C:Amie Page Icon Posted 2019-12-09 7:27 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,950
Location:
United Kingdom
Status:
Great post. ffmpeg can be a nightmare for new users to get to grips with. I know that I completely forget every time I use it.
 Top of the page
Mjolnir Page Icon Posted 2019-12-09 10:19 AM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
Quote
C:Amie - 2019-12-09 7:27 AM

Great post. ffmpeg can be a nightmare for new users to get to grips with. I know that I completely forget every time I use it.

Thanks, I know what you mean. I use many of the linux utilities and programs so infrequently that there is always a learning curve before the next instance, especially from the cmd line.

@stingraze If someone else doesn't come up with something first I'll muddle around with it for a while. If I have to I'll enlist some of the boys and girls at linuxquestions dot org. Some of those people can whip out a script with the off hand while eating potato chips with the other and watch a ballgame while doing so!
 Top of the page
Mjolnir Page Icon Posted 2019-12-10 12:23 AM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
Quote
stingraze - 2019-12-09 2:33 AM

nice!

It will be cool if you could make a bash script or perl script that gets input names from stdin and converts in batch to .wav so we can listen music/audio/voice on our H/PCs.


Not a script but if you put all your m4a(s) into a folder you can cd there and run:
for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -ac 2 -ab 192k "${f%.*}.mp3"; done

or:

for f in *.m4a; do ffmpeg -i "$f" -ar 8000 -acodec pcm_u8 -ac 1 "${f%.*}.wav"; done




(20191209_1812_FFMPEG.PNG)



Attachments
----------------
Attachments 20191209_1812_FFMPEG.PNG (46KB - 0 downloads)
 Top of the page
stingraze Page Icon Posted 2019-12-10 1:35 AM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
Thanks!

I will try it once I get some .m4a files made.
 Top of the page
stingraze Page Icon Posted 2019-12-10 2:41 AM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
It worked on my Ubuntu 18.04 Linux Subsystem on Windows environment!



Edited by stingraze 2019-12-10 2:41 AM




(screenshot1.jpg)



Attachments
----------------
Attachments screenshot1.jpg (41KB - 0 downloads)
 Top of the page
Mjolnir Page Icon Posted 2019-12-10 9:50 AM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
Quote
stingraze - 2019-12-10 2:41 AM

It worked on my Ubuntu 18.04 Linux Subsystem on Windows environment!

Good deal! I use WSL most of the time now. Lately I rarely fire up my stand-alone Linux or VM environments.
 Top of the page
stingraze Page Icon Posted 2019-12-10 9:12 PM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
Oops, it was Windows Subsystem for Linux. haha, my mistake.
I only started WSL several days ago. It seems pretty useful when using Windows environment.

 Top of the page
Mjolnir Page Icon Posted 2019-12-10 9:28 PM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
Drinking an 'adult' beverage while listening to Ray Stevens' Margaritaville.wav through 'Voice Recorder' from my Fat32, 128gb flash drive.

ffmpeg -i Margaritaville.mp3 -acodec pcm_s16le  -ar 44100 Margaritaville1.wav

not great of course, but not bad.

And for smaller file:

ffmpeg -i Margaritaville.mp3 -acodec pcm_u8 -ar 22050 Margaritaville.wav



very poor quality.

Edited by Mjolnir 2019-12-10 9:53 PM




(IMG_20191210_1504591.jpg)



Attachments
----------------
Attachments IMG_20191210_1504591.jpg (93KB - 0 downloads)
 Top of the page
CE Geek Page Icon Posted 2019-12-11 7:05 AM
#
Avatar image of CE Geek
Global Moderator
H/PC Oracle

Posts:
12,662
Location:
Southern California
Status:
"Margaritaville" was written by Jimmy Buffett. I don't recall Ray Stevens doing a version of it.
 Top of the page
Mjolnir Page Icon Posted 2019-12-11 12:53 PM
#
Avatar image of Mjolnir
Factorite (Elite)

Posts:
210
Location:
United States
Status:
Quote
CE Geek - 2019-12-11 7:05 AM

"Margaritaville" was written by Jimmy Buffett. I don't recall Ray Stevens doing a version of it.
Correct of course. Must have been thinking of " It's Me Again Margaret." The quality wasn't that bad, lol.

Edited by Mjolnir 2019-12-11 12:58 PM
 Top of the page
Jump to forum:
Seconds to generate: 0.234 - Cached queries : 52 - Executed queries : 31