mirror of https://github.com/ndarilek/tts-rs.git
Compare commits
5 Commits
f275e506df
...
fd9f5ae60a
Author | SHA1 | Date |
---|---|---|
Nolan Darilek | fd9f5ae60a | |
Nolan Darilek | b435c89239 | |
Nolan Darilek | 3366f93e2b | |
Nolan Darilek | 539003205e | |
Nolan Darilek | 5c9c649505 |
|
@ -27,14 +27,26 @@ jobs:
|
|||
with:
|
||||
command: check
|
||||
args: --all-features --examples
|
||||
if: ${{ runner.os != 'Linux' }}
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --no-default-features --examples
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
args: --all --check
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features
|
||||
if: ${{ runner.os != 'Linux' }}
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --no-default-features
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
|
||||
check_web:
|
||||
name: Check Web
|
||||
|
@ -88,4 +100,4 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y libspeechd-dev
|
||||
cargo login $CARGO_TOKEN
|
||||
cargo publish
|
||||
cargo publish --no-default-features
|
||||
|
|
|
@ -40,6 +40,12 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features
|
||||
if: ${{ runner.os != 'Linux' }}
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --no-default-features
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
|
||||
check_web:
|
||||
name: Check Web
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tts"
|
||||
version = "0.20.4"
|
||||
version = "0.21.0"
|
||||
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
|
||||
repository = "https://github.com/ndarilek/tts-rs"
|
||||
description = "High-level Text-To-Speech (TTS) interface"
|
||||
|
|
15
src/lib.rs
15
src/lib.rs
|
@ -157,7 +157,7 @@ unsafe impl Send for UtteranceId {}
|
|||
|
||||
unsafe impl Sync for UtteranceId {}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq, PartialOrd, Ord)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Features {
|
||||
pub is_speaking: bool,
|
||||
|
@ -168,19 +168,6 @@ pub struct Features {
|
|||
pub volume: bool,
|
||||
}
|
||||
|
||||
impl Default for Features {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
stop: false,
|
||||
rate: false,
|
||||
pitch: false,
|
||||
volume: false,
|
||||
is_speaking: false,
|
||||
utterance_callbacks: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Features {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||
writeln!(f, "{:#?}", self)
|
||||
|
|
Loading…
Reference in New Issue