[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01457] Re: gstream redundancy


My version had only one for-loop and much fewer memory allocations that
the original HTS 2.1 RC2 had.

br,
  Nicholas

> Hi Nicholas,
>
>> Is there some reason for duplicating pstream data to gstream data?
>> Meaning that we could reduce memory consumption and time spend of making
>> duplicates by removing gstreams and writing HTS_GStreamSet_create()
>> simply
>> as shown below. (I use pss->total_frame instead of the API function etc,
>> but that is trivial.)
>
> I think
>
>> /* HTS_GStreamSet_create: generate speech */
>> /* (stream[0] == spectrum && stream[1] == lf0) */
>> void HTS_GStreamSet_create(HTS_GStreamSet * gss, HTS_PStreamSet * pss,
>>                            int stage, int sampling_rate, int fperiod,
>>                            double alpha, double beta, int
>> audio_buff_size) {
>>    int i, j, k;
>> .....
>>    }
>>    HTS_Vocoder_clear(&v);
>> }
>
> and
>
>> Ok, I use /* HTS_GStreamSet_create: generate speech */
>> /* (stream[0] == spectrum && stream[1] == lf0) */
>> void HTS_GStreamSet_create(HTS_GStreamSet * gss, HTS_PStreamSet * pss,
>>                            int stage, int sampling_rate, int fperiod,
>>                            double alpha, double beta, int
>> audio_buff_size) {
>>    int i, j, k;
>> .....
>>    }
>>    HTS_Vocoder_clear(&v);
>> }
>
> are the same.  What do you mean?
>
> Regards,
>
> Heiga ZEN (Byung Ha CHUN)
>
>
> --
> ------------------------------------------------
>  Heiga ZEN     (in Japanese pronunciation)
>  Byung Ha CHUN (in Korean pronunciation)
>
>  Department of Computer Science and Engineering
>  Nagoya Institute of Technology
>  Gokiso-cho, Showa-ku, Nagoya 466-8555 Japan
>
>  http://www.sp.nitech.ac.jp/~zen
> ------------------------------------------------
>
>



Follow-Ups
[hts-users:01458] Re: gstream redundancy, Heiga ZEN (Byung Ha CHUN)
References
[hts-users:01455] gstream redundancy, Nicholas Volk
[hts-users:01456] Re: gstream redundancy, Heiga ZEN (Byung Ha CHUN)