Difference between revisions of "Troubleshooting"

From HemeraBook
Jump to: navigation, search
(General)
(Detected version XXX of espeak which needs --pho option)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=General=
 
=General=
 
==configure: error: no acceptable C compiler found in $PATH==
 
==configure: error: no acceptable C compiler found in $PATH==
You must prepare your [[Prepare_to_compile_Source#Needed_packages |computer for compiling source code]].<br />
+
You must prepare your [[Third-party:Prepare to compile Source#Needed_packages |computer for compiling source code]].<br />
  
 
<br />
 
<br />
 
==make: *** No targets specified and no makefile found.  Stop.==
 
==make: *** No targets specified and no makefile found.  Stop.==
First, you must prepare your [[Prepare_to_compile_Source#Needed_packages |computer for compiling source code]] to ensure having GNU version of make.<br />
+
First, you must prepare your [[Third-party:Prepare to compile Source#Needed_packages |computer for compiling source code]] to ensure having GNU version of '''''make'''''.<br />
 
<br />
 
<br />
 
Then, ensure a ''Makefile'' is available in the directory in which you launched the command.<br />
 
Then, ensure a ''Makefile'' is available in the directory in which you launched the command.<br />
Line 19: Line 19:
  
 
<br />
 
<br />
==GNU version of which not found. Please install it==
+
==GNU version of 'which' not found. Please install it==
Hemera requires GNU version of ''which'', which is natively provided by some GNU/Linux distribution.<br />
+
Hemera requires GNU version of '''''which''''', it is natively provided by some GNU/Linux distribution.<br />
Anyway, it is not the case of Debian-like GNU/Linux, in which case you must [[Install_third-party_tools#GNU_which |install it from source]].
+
Anyway, it is not the case of Debian-based distributions, in which case you must [[Third-party:Global#GNU_which |install it from source]].
  
 
<br />
 
<br />
 +
 
==You must update your LANG environment variable to use the UTF-8 charmaps ('XXX' detected)==
 
==You must update your LANG environment variable to use the UTF-8 charmaps ('XXX' detected)==
Hemera requires UTF-8, [[Install_Hemera#UTF-8 |update your OS to use UTF-8]].
+
Hemera requires UTF-8, [[Hemera:Install#UTF-8 |update your OS to use UTF-8]].
  
 
<br />
 
<br />
 
==Although the current OS locale 'XXX' defines to use the UTF-8 charmaps, it is not available (checked with 'locale -a')==
 
==Although the current OS locale 'XXX' defines to use the UTF-8 charmaps, it is not available (checked with 'locale -a')==
Hemera requires UTF-8, [[Install_Hemera#UTF-8 |update your OS to use UTF-8]].<br />
+
Hemera requires UTF-8, [[Hemera:Install#UTF-8 |update your OS to use UTF-8]].<br />
 
This locale must be installed on your OS, which can be confirmed using the ''locale'' command.
 
This locale must be installed on your OS, which can be confirmed using the ''locale'' command.
  
 
<br />
 
<br />
 
==lt-sox FAIL sox: Not enough input filenames specified; and SoX usage (lots of lines) is shown when Hemera attempts to play/rec sound==
 
==lt-sox FAIL sox: Not enough input filenames specified; and SoX usage (lots of lines) is shown when Hemera attempts to play/rec sound==
You may have installed [[Install_third-party_tools#SoX_v14.2.2B |SoX from source code]].<br />
+
You may have installed [[Third-party:Global#SoX_v14.2.2B |SoX from source code]].<br />
 
With this version, input and output must be specified on command line. For Default Sound Device (either as input or output), the option -d is use.<br />
 
With this version, input and output must be specified on command line. For Default Sound Device (either as input or output), the option -d is use.<br />
 
Update your [[Appendix#Configuration_file |configuration file]] comparing with the template in which corresponding option has been added later.
 
Update your [[Appendix#Configuration_file |configuration file]] comparing with the template in which corresponding option has been added later.
Line 40: Line 41:
 
<br />
 
<br />
 
==lt-sox FAIL formats: can't open output file `/dev/dsp': Permission denied==
 
==lt-sox FAIL formats: can't open output file `/dev/dsp': Permission denied==
You may have installed [[Install_third-party_tools#SoX_v14.2.2B |SoX from source code]].<br />
+
You may have installed [[Third-party:Global#SoX_v14.2.2B |SoX from source code]].<br />
It means your version of SoX version is missing support to your Sound Device. You must ensure having support to it (usually Alsa or PulseAudio) and compile source code again.<br />
+
It means your version of '''''SoX''''' version is missing support to your Sound Device. You must ensure having support to it (usually '''''Alsa''''' or '''''PulseAudio''''') and compile source code again.<br />
 
Ensure that end of report given by ''configure'' indicates support to your Sound Device.<br />
 
Ensure that end of report given by ''configure'' indicates support to your Sound Device.<br />
 
For instance:
 
For instance:
Line 50: Line 51:
 
<br />
 
<br />
 
==Unable to record sound with microphone==
 
==Unable to record sound with microphone==
You must ensure you can [[Hemera_User_Guide#Microphone |record with your microphone]].<br />
+
You must ensure you can [[Hemera:UserGuide#Microphone |record with your microphone]].<br />
You can then perform [[Hemera_Quick_Start#Quick_sound_check |sound check]].
+
You can then perform [[Hemera:QuickStart#Quick_sound_check |sound check]].
  
 
<br />
 
<br />
  
 
=Speech core module=
 
=Speech core module=
 +
==Detected version XXX of espeak which needs --pho option==
 +
This error message can be seen since version 1.44.0 of '''''espeak''''', which needs a new option to be used as phoneme mnemonics writer.<br />
 +
To fix this issue, update the following [[Appendix#Configuration_file |configuration element]] to add the --pho option
 +
'''hemera.core.speech.tool.options'''
 +
 +
==There was error while using mbrola, install corresponding file or create symbolic link==
 +
This can happen if some '''''mbrola''''' language/voices model are not installed or reachable.<br />
 +
To fix this issue, you can follow [[Troubleshooting#.2Fusr.2Fshare.2Fmbrola.2Fvoices.2Ffr1_not_found |these instructions]] (adapted to missing model).
 +
 
==/usr/share/mbrola/voices/fr1 not found==
 
==/usr/share/mbrola/voices/fr1 not found==
Seen under Debian-like GNU/Linux distribution; to fix it, you can create a symbolic link:
+
Since version 1.44, '''''espeak''''' changes the way it looks up for language files.
 +
 
 +
Follow these instructions according to situation.
 +
 
 +
===Directory /usr/share/mbrola/voices exists===
 +
On Debian-based distributions, this directory is usually created by '''''mbrola''''' language packages (e.g. mbrola-fr4); so to fix this issue, you can create a symbolic link:
 
  ln -s /usr/share/mbrola/voices/fr4 /usr/share/mbrola/voices/fr1
 
  ln -s /usr/share/mbrola/voices/fr4 /usr/share/mbrola/voices/fr1
 +
 +
===Directory /usr/share/mbrola/voices does NOT exist===
 +
This issue has been seen on recent version of Redhat-based distributions (e.g. Fedora 14).<br />
 +
To fix it, perform these instructions as root:
 +
mkdir -p /usr/share/mbrola
 +
ln -s [[Appendix#HEMERA_TP_PATH |HEMERA_TP_PATH]]/speech/data/language /usr/share/mbrola/voices
 +
ln -s /usr/share/mbrola/voices/fr4 /usr/share/mbrola/voices/fr1
 +
 +
==Sound is 'played' in loop==
 +
It has been seen in some modern distributions.<br />
 +
To fix this issue, check/update the following [[Appendix#Configuration_file |configuration element]] to remove the '-d' option
 +
'''hemera.core.speech.soundPlayer.options'''
  
 
<br />
 
<br />
 +
 
=Speech Recognition core module=
 
=Speech Recognition core module=
 
==lia_phon is stuck on "Initialisation des tableaux 1.2.3-grams"==
 
==lia_phon is stuck on "Initialisation des tableaux 1.2.3-grams"==
If you have an x86_64 OS architecture, you must force lia_phon compilation to ix86.<br />
+
If you have an '''x86_64''' OS architecture, you must force lia_phon compilation to '''x86'''.<br />
You can use the patch provided by the Hemera little [[Speech_Recognition_Models_Creation#LIA_PHON | speech recognition model creation project ]].
+
You can use the patch provided by the Hemera little [[Third-party:SpeechRecognition:Models:create#LIA_PHON |speech recognition model creation project ]].
  
 
<br />
 
<br />
 
==sphinx3_decode failed in Segmentation Fault==
 
==sphinx3_decode failed in Segmentation Fault==
There is some incompatibility between x86_64 old version of sphinx3_decode and UTF-8 language model.<br />
+
There is some incompatibility between '''x86_64''' old version of '''''sphinx3_decode''''' and UTF-8 language model.<br />
You may follow [[Install_cmusphinx3_oldVersion |these instructions]].
+
You may follow [[Third-party:SpeechRecognition:cmusphinx3_old_version |these instructions]].
  
 
<br />
 
<br />
 
==there is no "answer" when I speak in microphone==
 
==there is no "answer" when I speak in microphone==
You must ensure you can [[Hemera_User_Guide#Microphone |record with your microphone]].<br />
+
You must ensure you can [[Hemera:UserGuide#Microphone |record with your microphone]].<br />
You can then perform [[Hemera_Quick_Start#Quick_sound_check |sound check]].
+
You can then perform [[Hemera:QuickStart#Quick_sound_check |sound check]].
  
[[Category:HemeraBook]]
+
[[Category:HemeraBook/en]]
 +
[[Category:user/en]]

Latest revision as of 18:08, 14 December 2011

General

configure: error: no acceptable C compiler found in $PATH

You must prepare your computer for compiling source code.


make: *** No targets specified and no makefile found. Stop.

First, you must prepare your computer for compiling source code to ensure having GNU version of make.

Then, ensure a Makefile is available in the directory in which you launched the command.
The most of third-party tools uses autotools, so you usually need to launch ./configure to create such Makefile.


There is WARNING or ERROR when using Hemera

In this case, follow these instructions until you find a solution:

  • fix the issue if the message gives instruction
  • check the log (indicated on standard output) for more details
  • lookup solution on other section of this Troubleshooting page
  • ask for solution on the Help Forum


GNU version of 'which' not found. Please install it

Hemera requires GNU version of which, it is natively provided by some GNU/Linux distribution.
Anyway, it is not the case of Debian-based distributions, in which case you must install it from source.


You must update your LANG environment variable to use the UTF-8 charmaps ('XXX' detected)

Hemera requires UTF-8, update your OS to use UTF-8.


Although the current OS locale 'XXX' defines to use the UTF-8 charmaps, it is not available (checked with 'locale -a')

Hemera requires UTF-8, update your OS to use UTF-8.
This locale must be installed on your OS, which can be confirmed using the locale command.


lt-sox FAIL sox: Not enough input filenames specified; and SoX usage (lots of lines) is shown when Hemera attempts to play/rec sound

You may have installed SoX from source code.
With this version, input and output must be specified on command line. For Default Sound Device (either as input or output), the option -d is use.
Update your configuration file comparing with the template in which corresponding option has been added later.


lt-sox FAIL formats: can't open output file `/dev/dsp': Permission denied

You may have installed SoX from source code.
It means your version of SoX version is missing support to your Sound Device. You must ensure having support to it (usually Alsa or PulseAudio) and compile source code again.
Ensure that end of report given by configure indicates support to your Sound Device.
For instance:

 OPTIONAL DEVICE DRIVERS
 alsa (Linux)...............yes
 pulseaudio.................yes


Unable to record sound with microphone

You must ensure you can record with your microphone.
You can then perform sound check.


Speech core module

Detected version XXX of espeak which needs --pho option

This error message can be seen since version 1.44.0 of espeak, which needs a new option to be used as phoneme mnemonics writer.
To fix this issue, update the following configuration element to add the --pho option

hemera.core.speech.tool.options

There was error while using mbrola, install corresponding file or create symbolic link

This can happen if some mbrola language/voices model are not installed or reachable.
To fix this issue, you can follow these instructions (adapted to missing model).

/usr/share/mbrola/voices/fr1 not found

Since version 1.44, espeak changes the way it looks up for language files.

Follow these instructions according to situation.

Directory /usr/share/mbrola/voices exists

On Debian-based distributions, this directory is usually created by mbrola language packages (e.g. mbrola-fr4); so to fix this issue, you can create a symbolic link:

ln -s /usr/share/mbrola/voices/fr4 /usr/share/mbrola/voices/fr1

Directory /usr/share/mbrola/voices does NOT exist

This issue has been seen on recent version of Redhat-based distributions (e.g. Fedora 14).
To fix it, perform these instructions as root:

mkdir -p /usr/share/mbrola
ln -s HEMERA_TP_PATH/speech/data/language /usr/share/mbrola/voices
ln -s /usr/share/mbrola/voices/fr4 /usr/share/mbrola/voices/fr1

Sound is 'played' in loop

It has been seen in some modern distributions.
To fix this issue, check/update the following configuration element to remove the '-d' option

hemera.core.speech.soundPlayer.options


Speech Recognition core module

lia_phon is stuck on "Initialisation des tableaux 1.2.3-grams"

If you have an x86_64 OS architecture, you must force lia_phon compilation to x86.
You can use the patch provided by the Hemera little speech recognition model creation project .


sphinx3_decode failed in Segmentation Fault

There is some incompatibility between x86_64 old version of sphinx3_decode and UTF-8 language model.
You may follow these instructions.


there is no "answer" when I speak in microphone

You must ensure you can record with your microphone.
You can then perform sound check.