tts-server: normalizza i numeri interi 5+ cifre in parole italiane (Qwen3-TTS li leggeva cifra per cifra)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "qwen.h"
|
||||
#include "rvq-file.h"
|
||||
#include "text-normalize.h"
|
||||
#include "version.h"
|
||||
|
||||
#include <cmath>
|
||||
@@ -222,7 +223,9 @@ int main(int argc, char ** argv) {
|
||||
be.synthesize = [q, &lang](const tts_request & req, const tts_sink & sink, std::string & err) -> int {
|
||||
struct qt_tts_params p;
|
||||
qt_tts_default_params(&p);
|
||||
p.text = req.input.c_str();
|
||||
std::string normalized = req.input;
|
||||
text_normalize::normalize_numbers(normalized);
|
||||
p.text = normalized.c_str();
|
||||
p.lang = lang.c_str();
|
||||
|
||||
// Copy the registered voice latents out under the lock: the
|
||||
|
||||
Reference in New Issue
Block a user