Showing posts with label mp3. Show all posts
Showing posts with label mp3. Show all posts

Tuesday, 25 July 2017

Converting mp4 to mp3 in Ubuntu

Converting mp4 to mp3 in Ubuntu



Converting mp4 files to mp3 can easily be done via the terminal. First install ffmpeg and the necessary codecs by typing:

sudo apt-get install libav-sudo apt-get install ffmpeg libavcodec-extra-52
sudo apt-get update
sudo apt-get install ffmpeg libavcodec-extra-53
Than you can convert your file via:
ffmpeg -v 5 -y -i inputfile.mp4 -acodec libmp3lame -ac 2 -ab 192k outputfile.mp3

For example go to the video folder and convert your file like this:
cd Videos
ffmpeg -v 5 -y -i writelikethewind.mp4 -acodec libmp3lame -ac 2 -ab 192k writelikethewind.mp3

This should look something like this:

Note that I use ls to get a listing of alle the files in the current directory.

Also read my article on converting between different video format.
{ Read More }


Wednesday, 31 May 2017

Convert text files to MP3 under Linux

Convert text files to MP3 under Linux


Even though I am not a fan of audio books and the only thing I use my iPod for is listening music still while exploring Festival(which is basically a General multi-lingual speech synthesis system) I found out that its very easy to convert normal text files into mp3 using festival . Now this could be especially useful for people who either listen to audio books or people who have difficulty in reading.

First we would need to install festival. We can install festival with the following command :

sudo apt-get install festival


Now we need to install voices which would be used to dictate the text (install any one of the following ) :

To install British Accented male voice issue the following command :

sudo apt-get install festvox-rablpc16k

To install American Accented male voice issue the following command:

sudo apt-get install festival festvox-kallpc16k


Now once you have installed festival and voice package we are ready to convert text files .wav files .

Lets say you want computer to read file named kaddu.txt you would need to pipe(send output of one command to other ) the cat command to festival. You can do so by issuing the following command :
cat -A kaddu.txt | festival --tts
Now instead if you want to convert kaddu.txt to kaddu.wav you can do so by piping the output of cat to a tool that comes with festival text2wave. You can do so by issuing the following command in the terminal window :
cat -A kaddu.txt | text2wave -o kaddu.wav
Now however if you want to remove special characters and want festival/text2wav to read only a to z,A to Z, space, �,�,�.�,�!�,�?�. You can do so by piping the output of cat to sed and then piping the output of sed to text2wav/festival.
cat kaddu.txt |sed s/[^a-zA-Z .,!?]//g|festival --tts

or
cat kaddu.txt|sed s/[^a-zA-Z .,!?]//g|text2wave -o kaddu.wav
Now the (.wav) file produced is uncompressed and are huge in size so you might like to convert it to mp3 to reduce its size and to allow the files to be played on iPod or any other mp3 player. You can convert .wav files easily to (.mp3) file format by using lame .

To install lame issue the following command in the terminal window :
sudo apt-get install lame
after istallation is over to convert say kaddu.wav to kaddu.mp3 issue the following command :
lame -f kaddu.wav kaddu.mp3
NOTE : I am using -f switch here which basically encodes mp3 file faster and in lower quality .

Article Written by : Ambuj Varshney (blogambuj@gmail.com)
For Desktop on Linux Blog , http://linuxondesktop.blogspot.com
(C) 2008 , Ambuj Varshney

{ Read More }


Sunday, 16 April 2017

Convert Teks dan Tulisan ke Bentuk Suara MP3 WAV WMA MP4 OGG

Convert Teks dan Tulisan ke Bentuk Suara MP3 WAV WMA MP4 OGG



Convert Teks dan Tulisan ke Bentuk Suara (MP3, WAV, WMA, MP4, OGG) Image

Mungkin anda sering mendengar suara seseorang yang sedang membaca tulisan tetapi sebenarnya suara tersebut berasal dari mesin yang menerjemahkan tulisan yang telah di inputkan sebelumnya. Sebagai contoh, ketika anda menelepon ke operator selular, pertama kali yang berbicara kepada anda bukan customer service melainkan mesin yang telah disetting sebelumnya. Alat itulah yang menerjemahkan teks ke dalam bentuk suara yang bisa anda dengar.
Pada sistem operasi windows, sebenarnya sudah disediakan tools untuk mengkonvert teks ke bentuk suara yang dinamakan dengan Microsoft Speech Application Programming Interface (SAPI). Aplikasi ini secara default bisa digunakan bisa berfungsi dengan baik tapi dengan fitur minimal.
Karena itu, kami akan memberikan tutorial yang lebih powerfull bagaimana cara merubah teks ke bentuk suara yang bisa disimpan dalam format MP3. Berikut langkah demi langkah cara merubah teks ke bentuk MP3.
  • Donwload aplikasi Balabolka di http://www.cross-plus-a.com/balabolka.htm pilih versi installer.
  • Ekstrak file yang telah anda download tadi dan install pada komputer atau notebook anda.
  • Setelah aplikasi terbuka, masukkan teks ke dalam kotak kosong yang tersedia. Anda juga bisa mencoba dengan meng-copy paste teks dari sumber lain seperti website.
    Convert Teks dan Tulisan ke Bentuk Suara (MP3, WAV, WMA, MP4, OGG) Image
  • Setelah itu, tempatkan kursor di awal tulisan dan kumudian klik tombol Play di bagian atas untuk melihat preview dari suara yang keluar.
    Convert Teks dan Tulisan ke Bentuk Suara (MP3, WAV, WMA, MP4, OGG) Image
  • Jika ingin menyimpan file tersebut dalam bentuk file MP3, klik tombol File, pilih Save Audio File dan pada tipe pilihan format pilih MP3. Beri nama file tersebut kemudian tekan tombol Save.
Coba buka folder dimana anda menyimpan file yang sudah anda simpan tadi dan mainkan menggunakan media player seperti Winamp, Windows Media Player atau yang lain.
Kekurangan dari aplikasi ini, suara yang keluar adalah suara dari native speaker (Orang bule asli) sehingga jika anda memasukkan kata-kata ber-bahasa Indonesia akan terbaca menggunakan akses bahasa Inggris, bukan bahasa Indonesia.


Read more: http://blog.fastncheap.com/convert-teks-dan-tulisan-ke-bentuk-suara-mp3-wav-wma-mp4-ogg/#ixzz20WwDi14d
{ Read More }