GithubHelp home page GithubHelp logo

[FR][TTS][Android]Fibo split about sherpa-onnx HOT 7 OPEN

mablue avatar mablue commented on August 17, 2024
[FR][TTS][Android]Fibo split

from sherpa-onnx.

Comments (7)

csukuangfj avatar csukuangfj commented on August 17, 2024 1

Would you like to contribute?

An alternative is to split a sentence into smaller ones if the number of tokens is greater than some threshold, say, 10.

from sherpa-onnx.

csukuangfj avatar csukuangfj commented on August 17, 2024 1

Please see

std::vector<TokenIDs> token_ids =
frontend_->ConvertTextToTokenIds(text, meta_data.voice);

If token_ids[i].tokens.size() is larger than a threshold, then you need to split token_ids[i].tokens into smaller pieces so that each piece's length is smaller than the given threshold.

The basic knowledge is knowing how to split a std::vector<int32_t> into smaller vectors.

from sherpa-onnx.

GeminiT369 avatar GeminiT369 commented on August 17, 2024 1

I think this should be carefully considered. When the VITS model synthesizes sounds, the pronunciation of a word is related to its context. Improper segmentation may lead to low synthesis effects.

from sherpa-onnx.

csukuangfj avatar csukuangfj commented on August 17, 2024 1

By the way, we can limit the changes only to Persian.

from sherpa-onnx.

mablue avatar mablue commented on August 17, 2024

Yes I want,where should start?
Yes your porpuse is fast and simple.
I will work on it.

from sherpa-onnx.

mablue avatar mablue commented on August 17, 2024

Please see

std::vector<TokenIDs> token_ids =
frontend_->ConvertTextToTokenIds(text, meta_data.voice);

If token_ids[i].tokens.size() is larger than a threshold, then you need to split token_ids[i].tokens into smaller pieces so that each piece's length is smaller than the given threshold.

The basic knowledge is knowing how to split a std::vector<int32_t> into smaller vectors.

Ops cpp ?!! :D
Owkey I will get a try

@GeminiT369 it is very important for someone who uses screen readers.
It will be optional that you use or not use this thing also in languages like persian we want to just have a alternative to e-speak and it doesn't matter if it have very small synthesis effects.
But for for someone with visually problem it's important to have a fast tts.
I think maybe if we can reduce models to 2mb it will fix all problems...but we cant do it.
Or I dont know? Maybe we can?

from sherpa-onnx.

danpovey avatar danpovey commented on August 17, 2024

from sherpa-onnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.