mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-10 00:11:11 +00:00
tokenizer.c: Add an options parameter to the tokenizer_reset API.
This commit is contained in:
@@ -230,7 +230,8 @@ destroy_tokenizer(espeak_ng_TOKENIZER *tokenizer)
|
||||
|
||||
int
|
||||
tokenizer_reset(espeak_ng_TOKENIZER *tokenizer,
|
||||
espeak_ng_TEXT_DECODER *decoder)
|
||||
espeak_ng_TEXT_DECODER *decoder,
|
||||
espeak_ng_TOKENIZER_OPTIONS options)
|
||||
{
|
||||
if (!tokenizer) return 0;
|
||||
|
||||
|
||||
@@ -30,9 +30,15 @@ create_tokenizer(void);
|
||||
void
|
||||
destroy_tokenizer(espeak_ng_TOKENIZER *tokenizer);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ESPEAKNG_TOKENIZER_OPTION_TEXT = 0,
|
||||
} espeak_ng_TOKENIZER_OPTIONS;
|
||||
|
||||
int
|
||||
tokenizer_reset(espeak_ng_TOKENIZER *tokenizer,
|
||||
espeak_ng_TEXT_DECODER *decoder);
|
||||
espeak_ng_TEXT_DECODER *decoder,
|
||||
espeak_ng_TOKENIZER_OPTIONS options);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user