Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2013, 07:08 AM
|
#1
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Rep:
|
Any easy way to record Google Translate
Hi all,
Ubuntu 12.04 desktop
Is there a convenient way to record the sound of "Google Translate" on a .mp3 sound file?
Thanks
Rgds
satimis
|
|
|
07-30-2013, 08:35 AM
|
#2
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,979
|
Member Response
Hi,
If you are using 'ALSA' mixer then you should be able to use 'Capture' by setting the level.
You really need to provide more information; Gnu/Linux in use, Desktop and sound card or system information. Please read the following FYI;
Quote:
FYI: Netiquette is a set of social conventions that facilitate interaction over networks, ranging from Usenet and mailing lists to blogs and forums.
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
|
Hope this helps!
|
|
|
07-30-2013, 10:55 AM
|
#3
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Quote:
Originally Posted by onebuck
Hi,
If you are using 'ALSA' mixer then you should be able to use 'Capture' by setting the level.
You really need to provide more information; Gnu/Linux in use, Desktop and sound card or system information. Please read the following FYI;Hope this helps!
|
Hi,
Thanks for your advice.
I found an easy way:-
- Ran the Voice Memos of IPhone3gs recording the sound on a .m4a file.
- Sent the .m4a file to desktop computer
- Used an Online converter converting it to .mp3 file.
Rgds
satimis
|
|
|
07-31-2013, 08:19 PM
|
#4
|
LQ Newbie
Registered: Jul 2013
Posts: 14
Rep: 
|
You can use something like this as google translate is playing. After you setup your Mixer/Volume Control to the recoding source, you can use ffmpeg to capture the audio
ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k output.mp3
If not using pulse then use
ffmpeg -f alsa -i hw:0 -ar 44100 -ac 2 -ab 128k output.mp3
Last edited by geek@LQ; 07-31-2013 at 08:21 PM.
|
|
|
07-31-2013, 09:34 PM
|
#5
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Quote:
Originally Posted by geek@LQ
You can use something like this as google translate is playing. After you setup your Mixer/Volume Control to the recoding source, you can use ffmpeg to capture the audio
ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k output.mp3
If not using pulse then use
ffmpeg -f alsa -i hw:0 -ar 44100 -ac 2 -ab 128k output.mp3
|
Hi,
Thanks for your advice.
Performed following steps;
Ubuntu 12.04 desktop 64bit
1) Tried both commands with same output:
$ ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k output.mp3
$ ffmpeg -f alsa -i hw:0 -ar 44100 -ac 2 -ab 128k output.mp3
Code:
Stream mapping:
Stream #0.0 -> #0.0
Encoder (codec id 86017) not found for output stream #0.0
2) Found following article:
ffmpeg mp3 conversion failed [closed]
http://stackoverflow.com/questions/5...version-failed
Ran;
$ sudo apt-get install ffmpeg libavcodec-extra-*
Code:
.....
......
......
Setting up libopenjpeg2 (1.3+dfsg-4+squeeze1build0.12.04.1) ...
Setting up libavcodec-extra-53 (4:0.8.6ubuntu0.12.04.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
N: Ignoring file 'gcl' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'google.OLDlist' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
3)
Ran;
Turned all lines and MIC to max
4)
Tried both commands. Both worked;
Code:
ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k output.mp3
ffmpeg -f alsa -i hw:0 -ar 44100 -ac 2 -ab 128k output.mp3
Sound files recorded but on playback with low volume output.
Please advise how to fix "low volume output"? Thanks
satimis
|
|
|
07-31-2013, 10:10 PM
|
#6
|
LQ Newbie
Registered: Jul 2013
Posts: 14
Rep: 
|
Quote:
Originally Posted by satimis
Hi,
Sound files recorded but on playback with low volume output.
Please advise how to fix "low volume output"? Thanks
satimis
|
You can use audacity and use the Normalize effect filter or you can use normalize-mp3, a commandline utility which may come with the normalize package.
Another tip is to use -vol 1000 with ffmpeg to increase the volume and make a new mp3 file.
Code:
ffmpeg -i output.mp3 -ar 44100 -ac 2 -ab 128k -vol 1000 new_output.mp3
Note, you may want to experiment with different values with vol. To high a value and audio can be distorted. Try first with 1000, if it sounds fine you're set, if audio is distorted then try a lower value.
Last edited by geek@LQ; 07-31-2013 at 10:40 PM.
|
|
|
07-31-2013, 10:34 PM
|
#7
|
LQ Newbie
Registered: Jul 2013
Posts: 14
Rep: 
|
BTW, you can use vol while capturing audio
ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k -vol 1000 output.mp3
Also, ffmpeg is becoming depreciated in ubuntu. It's successor is avconv. avconv is compatible with ffmpeg options.
|
|
|
07-31-2013, 10:49 PM
|
#8
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Quote:
Originally Posted by geek@LQ
You can use audacity and use the Normalize effect filter or you can use normalize-mp3, a commandline utility which may come with the normalize package.
Another tip is to use -vol 1000 with ffmpeg to increase the volume and make a new mp3 file.
Code:
ffmpeg -i output.mp3 -ar 44100 -ac 2 -ab 128k -vol 1000 new_output.mp3
Note, you may want to experiment with different values with vol. To high a value and audio can be distorted. Try first with 1000, if it sounds fine you're set, if audio is distorted then try a lower value.
|
Hi,
Your suggested command worked but the background noise increased dramatically as well. Unfortunately I couldn't attach the mp3 file here for your reference.
alsamixer seems having no effect here.
I don't have audacity installed
Rgds
satimis
|
|
|
07-31-2013, 10:55 PM
|
#9
|
LQ Newbie
Registered: Jul 2013
Posts: 14
Rep: 
|
Does the original file has any background noise?
If it doesn't try the normalize-mp3 tool. Normalize is designed to increase volume to a safe limit without distorting it.
If you install audacity it has filters to remove background noise and hiss. It can also normalize the audio.
Last edited by geek@LQ; 07-31-2013 at 10:57 PM.
|
|
|
07-31-2013, 11:02 PM
|
#10
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Quote:
Originally Posted by geek@LQ
Does the original file has any background noise?
- deleted -
|
There is no original file. I just ran your late command recording the voice on Googel translate
satimis
|
|
|
07-31-2013, 11:06 PM
|
#11
|
LQ Newbie
Registered: Jul 2013
Posts: 14
Rep: 
|
I just noticed this line from your earlier post
Quote:
Turned all lines and MIC to max
|
I experience this before in the past. When it's at max it can introduce noise or high buzzing in the audio. I remedy this by lowering the slider to around 80% and there was hardly no noise. Linux is tricky with sound cards and mixers. You have to experiment to find the right settings to get the right sound.
Last edited by geek@LQ; 07-31-2013 at 11:09 PM.
|
|
|
07-31-2013, 11:19 PM
|
#12
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Quote:
Originally Posted by geek@LQ
I just noticed this line from your earlier post
I experience this before in the past. When it's at max it can introduce noise or high buzzing in the audio. I remedy this by lowering the slider to around 80% and there was hardly no noise. Linux is tricky with sound cards and mixers. You have to experiment to find the right settings to get the right sound.
|
Lowering line and MIC to half on alsamixer
Ran;
Code:
$ ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k -vol 1000 sound_e.mp3
Noise reduced but the sound recorded also reduced as well
satimis
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|