Category talk:Pronunciation
Simple how-to: new section
← Older revision
Revision as of 01:28, 15 March 2013
Line 2:
Line 2:
: No, there is no need for something like this, pronunciation files have very simple description. See [[:File:En-uk-I can't.ogg]] and [[:File:Pl-trzysta.ogg]] on how to write the description correctly. Please remember about the proper naming of the file including language ISO code. --[[User:Derbeth|Derbeth]] [[User talk:Derbeth|talk]] 18:53, 25 January 2010 (UTC)
: No, there is no need for something like this, pronunciation files have very simple description. See [[:File:En-uk-I can't.ogg]] and [[:File:Pl-trzysta.ogg]] on how to write the description correctly. Please remember about the proper naming of the file including language ISO code. --[[User:Derbeth|Derbeth]] [[User talk:Derbeth|talk]] 18:53, 25 January 2010 (UTC)
:: Ok. Thank you. -- [[User:AKA MBG|Andrew Krizhanovsky]] ([[User talk:AKA MBG|talk]]) 09:41, 26 January 2010 (UTC)
:: Ok. Thank you. -- [[User:AKA MBG|Andrew Krizhanovsky]] ([[User talk:AKA MBG|talk]]) 09:41, 26 January 2010 (UTC)
+
+
== Simple how-to ==
+
+
Here's how to record a bunch of words on a Ubuntu Linux platform. Use 'synaptic' or 'apt-get' to install the necessary software packages, such as 'alsa-utils' and 'sox'. Compile a list of words that you want to record.
+
+
#!/bin/sh
+
lang=sv
+
while read word
+
do
+
echo $word
+
arecord -r 100000 -d 4 $lang-$word.wav
+
sox $lang-$word.wav $lang-$word.ogg norm vad -p .25 reverse vad -p .25 reverse
+
done
+
Here, "sv" (Swedish) is set as the language, which will be used as a filename prefix. "echo" prints the word as a prompt. "arecord" records four seconds of audio in 100 kbit/s, including any initial and trailing silence, so you don't have to press any key to start and stop the recording. "sox" then converts the recorded wav file to the free and open Ogg Vorbis format, but first it normalizes the sound level, truncates initial and trailing silence, but keeping .25 seconds of silence margin. --[[User:LA2|LA2]] ([[User talk:LA2|talk]]) 01:28, 15 March 2013 (UTC)