Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/HOWTO_ENCODE
blob: 0f9ec04d48d9be163dd2bce8c38ebab050210598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

This document describes howto create a localized version of the voices.

1) Create your voices directory
   ----------------------------
First copy the english voices as a template in a new directory with you locale name (e.g. my)
cd boards/voices
cp -r en my

Provide here voice translation in boards/voices/my for each english voice.

2) Recording / Encoding
   --------------------
It is best to choose somebody that speaks and articulate well your language.

- Record with rec, grecord, bcast2000, gnoise, audacity
  (mono wav 16bit/44100Hz gives the best quality/space ratio)

  44100Hz is MANDATORY. On some system with bad supported sound card
  other frequency lead to major troubles.

- Save as WAV file
- Apply loudness transform with sox if necessary.
	You may such script if the sound is too low :
	#!/bin/sh
	for i; do
	  sox $i modif/$i vol 5.0 amplitude 0.05
	done

- In the directory where WAV files are run do:
        oggenc -q0 --downmix -a "(name of author) -d "date of recording" \
               -c "copyright=GPL V3+" *.wav

	ogginfo should display the comment.

- Copy OGG files in the corresponding directory

- Normalize them so that the all have the same volume level (replace ll by your locale)
        cd boards/voices/
        normalize-ogg ll/*/*.ogg

3) Shipping
   --------
Once done, the easiest way is to tar all this files and send them to the gcompris maintainer.
cd boards/voices
tar -cvzf voices_my.tgz my

4) Integration
   -----------
Nothing has to be done, just run 'make install' at GCompris to level. The voices
will be installed in the proper directory and GCompris will play them.
Run gcompris in your locale and you should ear your voices.

5) Checking
   --------
At top level, run:
./tools/check_missing_voices.pl <locale>

With for example locale being fr for French.