drama-rs 0.3.0

Fish Audio Drama 3 text-to-speech in Rust (CUDA or Apple Silicon MLX)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Compatibility entry points for callers that previously created a CUDA stream.
use anyhow::Result;
pub struct Stream;
impl Stream {
    pub fn new() -> Result<Self> {
        crate::apple::init()?;
        Ok(Self)
    }
    pub fn sync(&self) -> Result<()> {
        Ok(())
    }
}
pub fn mem_info() -> Result<(usize, usize)> {
    crate::apple::memory_info()
}