diff --git a/CHANGELOG.md b/CHANGELOG.md index d801423..4f84bfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # aspeak Changelog +# v5.2.0 + +## 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. + # v5.1.0 - Add binary feature to aspeak crate to make rust lib less bloated diff --git a/Cargo.lock b/Cargo.lock index 9d0eb90..8b94ba2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,7 +71,7 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" [[package]] name = "aspeak" -version = "5.1.0" +version = "5.2.0" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index b88818c..d2c4b82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aspeak" -version = "5.1.0" +version = "5.2.0" edition = "2021" authors = ["kxxt "] description = "A simple text-to-speech client for Azure TTS API." diff --git a/README.md b/README.md index fa0881c..c428458 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ From v4.1.0, You can install `aspeak-bin` from AUR. Installing from PyPI will also install the python binding of `aspeak` for you. Check [Library Usage#Python](#Python) for more information on using the python binding. ```bash -pip install -U aspeak==5.1.0 +pip install -U aspeak==5.2.0 ``` Now the prebuilt wheels are only available for x86_64 architecture. @@ -107,7 +107,12 @@ To avoid repetition, you can store your authentication details in your aspeak profile. Read the following section for more details. -From v4.3.0, you can let aspeak use a proxy server to connect to the endpoint. +From v5.2.0, you can also 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 + +From v4.3.0, you can let aspeak use a proxy server to connect to the endpoint. For now, only http and socks5 proxies are supported (no https support yet). For example: ```sh