1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 11:49:37 +00:00

Derive common traits for Gender and Voice

This commit is contained in:
Bear-03 2022-07-21 01:25:14 +02:00
parent b3d2b788f7
commit 15f28c9af4
No known key found for this signature in database
GPG Key ID: 3D1DC5AFDA57B32E

View File

@ -648,13 +648,13 @@ impl Drop for Tts {
}
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Gender {
Male,
Female,
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Voice {
pub(crate) id: String,
pub(crate) name: String,