Comments (3)
v4.0 is a breaking change. Please look at
- the release note: https://github.com/kxxt/aspeak/releases/tag/v4.0.0
- and documentation: https://github.com/kxxt/aspeak (the examples)
from aspeak.
For using aspeak v4 with python. See https://github.com/kxxt/aspeak#python
A minimal example:
text = "Hello World"
from aspeak import SpeechService, AudioFormat
srv = SpeechService(AudioFormat("mp3"))
srv.connect()
srv.synthesize_text(text, output="out.mp3")
Note that aspeak no longer automatically reconnects so you might need to reconnect manually.
from aspeak.
For using aspeak v4 with python. See https://github.com/kxxt/aspeak#python
A minimal example:
text = "Hello World" from aspeak import SpeechService, AudioFormat srv = SpeechService(AudioFormat("mp3")) srv.connect() srv.synthesize_text(text, output="out.mp3")Note that aspeak no longer automatically reconnects so you might need to reconnect manually.
dont get the reconnects manually.
now my script gives me an error about connect:
srv.connect()
OSError: Websocket error
not sure about whats happening,
thx in advance
from aspeak.
Related Issues (20)
- Add an CLI arg to disable colored output HOT 1
- Add `audio` feature for crate HOT 2
- the free version may refer to this page:https://speech.microsoft.com/audiocontentcreation HOT 2
- Better error handling HOT 1
- Pass key/auth token via environment variable HOT 1
- Add support get voice list in lib HOT 1
- Question #19017 HOT 1
- No examples on v5.2.0 HOT 3
- Provide REST Mode HOT 3
- feat: batch processing API HOT 2
- tokio-tungstenite-0.19.0.crate: 4 vulnerabilities (highest severity is: 9.1) - autoclosed HOT 1
- reqwest-0.11.18.crate: 1 vulnerabilities (highest severity is: 5.5) - autoclosed HOT 1
- Python Binding: provide .pyi file
- colored-2.0.0.crate: 1 vulnerabilities (highest severity is: 9.8) - autoclosed HOT 1
- aspeak does not support python3.9 or above HOT 1
- Publish python wheels for apple silicon Macs HOT 1
- tokio-tungstenite-0.20.1.crate: 1 vulnerabilities (highest severity is: 7.5) - autoclosed HOT 1
- 400 error HOT 3
- tokio-tungstenite-0.21.0.crate: 2 vulnerabilities (highest severity is: 7.5)
- ws synthesizer Error
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 aspeak.