Aspeak

Latest version: v6.1.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

6.0.0beta.1

6.0.0alpha.3

6.0.0alpha.2

For CLI users

There are no breaking changes. But there are some differences.

Changes

- Now the CLI uses the REST API instead of the WebSocket API by default.
- You can use the `--mode websocket` flag to use the WebSocket API.
- You can also set the `mode` field to `websocket` in the auth section in your profile to use the WebSocket API by default.

Bug Fixes

- When the TTS API returns empty audio, aspeak no longer reports an cryptic "Unrecognized format" error.
- It will now report a warning in this case: "Got empty audio buffer, nothing to play"
- Now the voice listing command no longer fails with this API endpoint: https://speech.platform.bing.com/consumer/speech/synthesize/readaloud/voices/list

For Rust crate users

There are lots of breaking changes.

- Some fields of the `Voice` struct is now optional.
- We now uses an [modular approach for error handling](https://sabrinajewson.org/blog/errors) instead of using a big enum for all errors.
- Now there are two synthesizers: `RestSynthesizer` for the REST API and `WebSocketSynthesizer` for the WebSocket API.
- There is a `UnifiedSynthesizer` trait that provides a unified interface for both synthesizers.
- Some methods are renamed. For example, `Synthesizer::connect` is now `Synthesizer::connect_websocket`.
- Three new features of this crate:
- `rest-synthesizer`: Enable the `RestSynthesizer` struct.
- `websocket-synthesizer`: Enable the `WebSocketSynthesizer` struct.
- `unified-synthesizer`: Enable the `UnifiedSynthesizer` trait.
- The above three features are enabled by default.
- Disabling `websocket-synthesizer` feature will save you a bunch of dependencies. (`aspeak.rlib` is ~0.8MB smaller in release mode)
- Other minor changes.

For Python binding users

One breaking change:

- The `SpeechService` now automatically connect when it is constructed. The `connect` method is removed.
- It now uses the REST API by default.
- New keyword argument for the constructor of `SpeechService`:
- mode: `rest` or `websocket`. Default is `rest`.

5.2.0

Not secure
CLI

You can now set the authentication secrets via the following environment variables:

- `ASPEAK_AUTH_KEY` for authentication using subscription key
- `ASPEAK_AUTH_TOKEN` for authentication using authorization token

Rust API

- Now you can use `Voice::request_available_voices`(or `Voice::request_available_voices_with_additional_headers`) to get the list of available voices.

5.1.0

Not secure
- Add binary feature to aspeak crate to make rust lib less bloated
- From now on, building the CLI requires `-F binary` flag.

5.0.1alpha.2

- Add binary feature to make rust lib less bloated

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.