Giter Site home page Giter Site logo

Comments (6)

purkylin avatar purkylin commented on August 19, 2024
if boundary_type > 0:
    word_boundary = True
if boundary_type > 1:
    sentence_boundary = True

If I want use sentence boundary, all should set True.

from edge-tts.

rany2 avatar rany2 commented on August 19, 2024

Update to the latest version, wordBoundaryEnabled and sentenceBoundaryEnabled no longer exist.

You should use boundary type = 2

from edge-tts.

rany2 avatar rany2 commented on August 19, 2024

sentenceBoundaryEnabled doesn't work properly at Microsoft's end. If it doesn't detect something as a sentence it skips in entirely, right now I have a workaround enabled but let me know if you want the workaround removed.

Edit:

Example sentence:

"Hello world. My name is jeff"

Microsoft wouldn't send back the "My name is jeff" because it is missing a point.

from edge-tts.

purkylin avatar purkylin commented on August 19, 2024

What does the offset mean If the sample rate is 16000? I can not show the sentence at right time.

The sample output:

Meta(type:EdgeTTS.Meta.BoundaryType.sentence, offset: 70625000, duration: nil, text: "Hello World", length: 0)

from edge-tts.

rany2 avatar rany2 commented on August 19, 2024

I don't think it changes by sample rate. Anyway have a look at the code for the workarounds caused by broken SentenceBoundary ... it's so broken even Microsoft stopped supporting it in their official Azure Cognitive Services offerings

from edge-tts.

rany2 avatar rany2 commented on August 19, 2024

I dropped support for SentenceBoundary. Too many hacks to get it to work and Microsoft no longer supports it in their Azure SDK offerings anyway. See 797d04f for more changes.

from edge-tts.

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.