A simple text-to-speech client for Azure TTS API.
Update dependencies, which solves security alerts.
aspeak v6.0 is finally released🎉🎉🎉! This is a major release with some breaking changes. Please read the following carefully.
v6
and it will change as the major version change.--mode websocket
flag to use the WebSocket API.mode
field to websocket
in the auth section in your profile to use the WebSocket API by default.There are a lots of breaking changes:
Voice
struct is now optional.RestSynthesizer
for the REST API and WebSocketSynthesizer
for the WebSocket API. (#71)
Bytes
object instead of Vec<u8>
.UnifiedSynthesizer
trait that provides a unified interface for both synthesizers.Synthesizer::connect
is now Synthesizer::connect_websocket
.rest-synthesizer
: Enable the RestSynthesizer
struct.websocket-synthesizer
: Enable the WebSocketSynthesizer
struct.unified-synthesizer
: Enable the UnifiedSynthesizer
trait.synthesizers
: Enable all synthesizers.synthesizers
feature are enabled by default.websocket-synthesizer
feature will save you a bunch of dependencies. (aspeak.rlib
is ~0.8MB smaller in release mode)native-tls
. To use other TLS implementations, you can use the following feature flags:
native-tls-vendored
: Use the vendored version of native-tls
.rustls-tls-native-roots
rustls-tls-webpki-roots
SpeechService
now automatically connect when it is constructed and it is using the websocket API. The connect
method is removed.SpeechService
:
rest
or websocket
. Default is rest
.Changes after v6.0.0-beta.3:
v5
and it will change to v6
when v6 is released.Changes after v6.0.0-beta.2:
Changes after v6.0.0-beta.1:
Changes after v6.0.0-alpha.3:
RestSynthesizer
that returns Bytes
instead of Vec<u8>
.Changes after v6.0.0-alpha.2:
strum
to 0.25 by @attila-linsynthesizers
feature that enables all synthesizersThere are no breaking changes. But there are some differences.
--mode websocket
flag to use the WebSocket API.mode
field to websocket
in the auth section in your profile to use the WebSocket API by default.There are lots of breaking changes.
Voice
struct is now optional.RestSynthesizer
for the REST API and WebSocketSynthesizer
for the WebSocket API.UnifiedSynthesizer
trait that provides a unified interface for both synthesizers.Synthesizer::connect
is now Synthesizer::connect_websocket
.rest-synthesizer
: Enable the RestSynthesizer
struct.websocket-synthesizer
: Enable the WebSocketSynthesizer
struct.unified-synthesizer
: Enable the UnifiedSynthesizer
trait.websocket-synthesizer
feature will save you a bunch of dependencies. (aspeak.rlib
is ~0.8MB smaller in release mode)One breaking change:
SpeechService
now automatically connect when it is constructed. The connect
method is removed.SpeechService
:
rest
or websocket
. Default is rest
.You can now set the authentication secrets via the following environment variables:
ASPEAK_AUTH_KEY
for authentication using subscription keyASPEAK_AUTH_TOKEN
for authentication using authorization tokenVoice::request_available_voices
(or Voice::request_available_voices_with_additional_headers
) to get the list of available voices.-F binary
flag.