このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
project:htsengineapi [2011/10/17 10:01] – Takuya Nishimoto | project:htsengineapi [2012/07/12 17:49] (現在) – Takuya Nishimoto | ||
---|---|---|---|
行 5: | 行 5: | ||
http:// | http:// | ||
- | 2011-07-07 に 1.05 がリリースされた。(Open JTalk 1.05 と同時) | + | * 2011-12-25 に 1.06 がリリースされた。(Open JTalk 1.05 と同時) |
- | + | * lib/ | |
- | * 1.05 から PortAudio での出力に対応している。 | + | |
+ | | ||
[[:nvdajp]] で使っているバージョンはこちら: | [[:nvdajp]] で使っているバージョンはこちら: | ||
行 20: | 行 21: | ||
* [[https:// | * [[https:// | ||
+ | ===== NVDA版パッチ ===== | ||
+ | |||
+ | since 2012-07-12 | ||
+ | |||
+ | HTS_engine_API 1.06 ベースで作業中。これを導入するときには JTalk のドライバも変更が必要(HTS_Audioのサイズが0でなくなる): | ||
+ | |||
+ | [[: | ||
+ | |||
+ | < | ||
+ | *** hts_org/ | ||
+ | --- htsengineapi/ | ||
+ | *************** | ||
+ | *** 95,100 **** | ||
+ | --- 95,101 ---- | ||
+ | | ||
+ | /* -------------------------- audio ------------------------------ | ||
+ | | ||
+ | + #if 0 | ||
+ | #if !defined(AUDIO_PLAY_WINCE) && !defined(AUDIO_PLAY_WIN32) && !defined(AUDIO_PLAY_PORTAUDIO) && !defined(AUDIO_PLAY_NONE) | ||
+ | #if defined(__WINCE__) || defined(_WINCE) || defined(_WINCE) || defined(__WINCE) | ||
+ | #define AUDIO_PLAY_WINCE | ||
+ | *************** | ||
+ | *** 104,109 **** | ||
+ | --- 105,113 ---- | ||
+ | #define AUDIO_PLAY_NONE | ||
+ | # | ||
+ | # | ||
+ | + #else | ||
+ | + #define AUDIO_PLAY_NONE | ||
+ | + #endif | ||
+ | | ||
+ | /* HTS_Audio: audio output for Windows */ | ||
+ | #if defined (AUDIO_PLAY_WIN32) || defined(AUDIO_PLAY_WINCE) | ||
+ | *************** | ||
+ | *** 141,147 **** | ||
+ | /* HTS_Audio: dummy audio output */ | ||
+ | #ifdef AUDIO_PLAY_NONE | ||
+ | typedef struct _HTS_Audio { | ||
+ | ! int i; /* make compiler happy */ | ||
+ | } HTS_Audio; | ||
+ | # | ||
+ | | ||
+ | --- 145,151 ---- | ||
+ | /* HTS_Audio: dummy audio output */ | ||
+ | #ifdef AUDIO_PLAY_NONE | ||
+ | typedef struct _HTS_Audio { | ||
+ | ! void *p /* int i */; /* make compiler happy */ | ||
+ | } HTS_Audio; | ||
+ | # | ||
+ | | ||
+ | *************** | ||
+ | *** 572,578 **** | ||
+ | void HTS_GStreamSet_initialize(HTS_GStreamSet * gss); | ||
+ | | ||
+ | /* HTS_GStreamSet_create: | ||
+ | ! HTS_Boolean HTS_GStreamSet_create(HTS_GStreamSet * gss, HTS_PStreamSet * pss, int stage, HTS_Boolean use_log_gain, | ||
+ | | ||
+ | /* HTS_GStreamSet_get_total_nsample: | ||
+ | int HTS_GStreamSet_get_total_nsample(HTS_GStreamSet * gss); | ||
+ | --- 576,582 ---- | ||
+ | void HTS_GStreamSet_initialize(HTS_GStreamSet * gss); | ||
+ | | ||
+ | /* HTS_GStreamSet_create: | ||
+ | ! HTS_Boolean HTS_GStreamSet_create(HTS_GStreamSet * gss, HTS_PStreamSet * pss, int stage, HTS_Boolean use_log_gain, | ||
+ | | ||
+ | /* HTS_GStreamSet_get_total_nsample: | ||
+ | int HTS_GStreamSet_get_total_nsample(HTS_GStreamSet * gss); | ||
+ | *************** | ||
+ | *** 621,626 **** | ||
+ | --- 625,632 ---- | ||
+ | | ||
+ | | ||
+ | | ||
+ | + double lf0_offset; | ||
+ | + double lf0_amp; | ||
+ | } HTS_Engine; | ||
+ | | ||
+ | /* ----------------------- engine method ------------------------- | ||
+ | *************** | ||
+ | *** 763,768 **** | ||
+ | --- 769,777 ---- | ||
+ | /* HTS_Engine_clear: | ||
+ | void HTS_Engine_clear(HTS_Engine * engine); | ||
+ | | ||
+ | + /* HTS_Engine_set_lf0_offset: | ||
+ | + void HTS_Engine_set_lf0_offset_amp(HTS_Engine * engine, double offset, double amp); | ||
+ | + | ||
+ | /* -------------------------- vocoder ---------------------------- | ||
+ | | ||
+ | /* HTS_Vocoder: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | *** hts_org/ | ||
+ | --- htsengineapi/ | ||
+ | *************** | ||
+ | *** 472,478 **** | ||
+ | /* HTS_Engine_create_gstream: | ||
+ | HTS_Boolean HTS_Engine_create_gstream(HTS_Engine * engine) | ||
+ | { | ||
+ | ! return HTS_GStreamSet_create(& | ||
+ | } | ||
+ | | ||
+ | /* HTS_Engine_save_information: | ||
+ | --- 472,479 ---- | ||
+ | /* HTS_Engine_create_gstream: | ||
+ | HTS_Boolean HTS_Engine_create_gstream(HTS_Engine * engine) | ||
+ | { | ||
+ | ! return HTS_GStreamSet_create(& | ||
+ | } | ||
+ | | ||
+ | /* HTS_Engine_save_information: | ||
+ | *************** | ||
+ | *** 759,764 **** | ||
+ | --- 760,771 ---- | ||
+ | | ||
+ | } | ||
+ | | ||
+ | + /* HTS_Engine_set_lf0_offset: | ||
+ | + void HTS_Engine_set_lf0_offset_amp(HTS_Engine * engine, double offset, double amp) | ||
+ | + { | ||
+ | + | ||
+ | + | ||
+ | + } | ||
+ | HTS_ENGINE_C_END; | ||
+ | | ||
+ | # | ||
+ | </ | ||