mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-30 22:23:05 +00:00
[1.43.31]
*_list files: added attribute $sentence. *_rules files: added attributes $w_alt, $p_alt. phoneme definitions: added attribute no_pause. -X command-line option: Show the matching of multiple-word entries in *_list files. espeakedit: Add menu option to compile the intonation data file (the data is not yet used). Start language: Bulgarian. lang=bg (Bulgarian): Add feature in espeakedit to make bg_listx from a lexicon of words which have stress position mark-up. espeakedit: Change the frame-length field from Spin Control to Text Control to allow better access from screen-readers. Language options: add an option to the Regressive Voicing option to de-voice the final consonant of words. Don't speak "dot" if an ellipsis is followed by a dot. Intonation: change the internal pitch unit to give finer control, and align with the values displayed in the espeakedit Prosody window. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@243 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -50,7 +50,7 @@ typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[Setup]
|
||||
AppName=eSpeak
|
||||
AppVerName=eSpeak version 1.42
|
||||
AppVerName=eSpeak version 1.43.24
|
||||
AppCopyright=Licensed under GNU General Public License version 3. (See file License.txt for details).
|
||||
WindowVisible=yes
|
||||
|
||||
@@ -94,6 +94,8 @@ var
|
||||
UILanguage: Integer;
|
||||
UIVoice: String;
|
||||
Page: TInputQueryWizardPage;
|
||||
voices_installed: array [0..200] of String;
|
||||
n_voices_installed: Integer;
|
||||
|
||||
const
|
||||
sEspeak = 'eSpeak-';
|
||||
@@ -329,6 +331,7 @@ end;
|
||||
|
||||
procedure SetupVoice(Voice: String; Index: Integer);
|
||||
var
|
||||
ix: Integer;
|
||||
RegVoice2: String;
|
||||
RegVoice2a: String;
|
||||
VoiceUC: String;
|
||||
@@ -348,6 +351,16 @@ begin
|
||||
VoiceUC := 'default'
|
||||
else
|
||||
VoiceUC := Uppercase(Voice);
|
||||
|
||||
// check for duplicate voice names
|
||||
for ix := 0 to n_voices_installed - 1 do begin
|
||||
if voices_installed[ix] = VoiceUC then
|
||||
Exit;
|
||||
end;
|
||||
if n_voices_installed < 200 then begin
|
||||
voices_installed[n_voices_installed] := VoiceUC;
|
||||
n_voices_installed := n_voices_installed + 1;
|
||||
end;
|
||||
|
||||
RegWriteStringValue(HKEY_LOCAL_MACHINE,RegVoice2,'',sEspeak+VoiceUC);
|
||||
RegWriteStringValue(HKEY_LOCAL_MACHINE,RegVoice2,'CLSID','{BE985C8D-BE32-4A22-AA93-55C16A6D1D91}');
|
||||
@@ -439,7 +452,7 @@ begin
|
||||
Page.Values[0] := Format('%s',[UIVoice]);
|
||||
Page.Values[1] := Format('%s',[voice2]);
|
||||
|
||||
|
||||
n_voices_installed := 0;
|
||||
end;
|
||||
|
||||
procedure ClearRegistry;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
[Setup]
|
||||
AppName=eSpeakEdit
|
||||
AppVerName=eSpeakEdit version 1.42
|
||||
AppVerName=eSpeakEdit version 1.43.24
|
||||
DefaultDirName={pf}\eSpeak
|
||||
DefaultGroupName=eSpeak
|
||||
OutputBaseFilename=setup_espeakedit
|
||||
|
||||
@@ -48,7 +48,7 @@ typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
int LookupMnem(MNEM_TAB *table, const char *string);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -402,9 +402,11 @@ STDMETHODIMP CTTSEngObj::SetObjectToken(ISpObjectToken * pToken)
|
||||
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,100,path_install,1);
|
||||
espeak_SetSynthCallback(SynthCallback);
|
||||
initialised = 1;
|
||||
g_voice_name[0] = 0;
|
||||
// g_voice_name[0] = 0;
|
||||
}
|
||||
|
||||
strcpy(g_voice_name, voice_name);
|
||||
espeak_SetVoiceByName(g_voice_name);
|
||||
|
||||
return hr;
|
||||
} /* CTTSEngObj::SetObjectToken */
|
||||
|
||||
Reference in New Issue
Block a user