Comments (6)
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.
Update to the latest version, wordBoundaryEnabled
and sentenceBoundaryEnabled
no longer exist.
You should use boundary type = 2
from edge-tts.
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.
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.
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.
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)
- Microsoft recently released new sound model... HOT 3
- any plan update for new voices HOT 2
- 能整合到网页里吗?任何平台的任何浏览器都能用吗? HOT 1
- support new OpenAI tts HOT 1
- Add "-" as a valid parameter for input/output parameters HOT 5
- British English voice not found HOT 1
- Is there quota for the tts service? HOT 1
- More than one speaker in a long long sentence HOT 1
- Support for pitch in the python api? HOT 1
- #deleted HOT 1
- Communicate blocks the asyncio loop briefly at the start HOT 3
- Multilingual voice will change language unintentionally HOT 1
- 生成的vtt字幕文件丢失原文的标点符号?
- How do I remove blank lines from VTT subtitles? HOT 9
- Few words are dropped when sending many requests in parallel HOT 5
- 语速加快配音会导致字幕与音频不对轴(Speeding up the voice-over will cause the subtitles to be out of sync with the audio)
- Save as wav? HOT 1
- 中文的文本生成的字幕,词语分割点总是在奇怪的位置,本来是一个词语应该在一条字幕内显示,而现在生成的字幕会把词语拆成两条字幕显示,不知道--write-subtitles命令中文本是如何分割的,我把中文标点符号替换成英文标点符号,结果还是一样 HOT 5
- Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=79d29bf64dbf4212a779eaef6dd2f594 HOT 1
- Example to play audio chunks via pydub HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edge-tts.