Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fish_speech_python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = { workspace = true }
edition = "2021"

[lib]
name = "fish_speech_rs"
name = "fish_speech"
crate-type = ["cdylib"]

[features]
Expand Down
6 changes: 3 additions & 3 deletions fish_speech_python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feel free to raise an issue if you need ARM or Alpine Linux.

```bash
# From PyPI
pip install fish_speech_python
pip install fish_speech_rs
```

## Usage
Expand All @@ -26,7 +26,7 @@ pip install fish_speech_python
This is the low-level API. You feed it PCM audio, it compresses it into codes, and then decompresses it back into PCM.

```python
from fish_speech_rs import FireflyCodec
from fish_speech import FireflyCodec
from huggingface_hub import snapshot_dir
import numpy as np

Expand Down Expand Up @@ -56,7 +56,7 @@ decoded_pcm = codec.decode(codes)
The language model (LM) takes text and turns it into speech codes, which you then decode back to audio.

```python
from fish_speech_rs import LM, preprocess_text
from fish_speech import LM, preprocess_text
from typing import List

# Load the TTS model
Expand Down
2 changes: 1 addition & 1 deletion fish_speech_python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "fish_speech_python"
name = "fish_speech_rs"
# Handled by maturin
description = "High-performance speech synthesis"
version = "0.2.2"
Expand Down
2 changes: 1 addition & 1 deletion fish_speech_python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use codec::FireflyCodec;
use lm::LM;

#[pymodule]
fn fish_speech_rs(_py: Python, m: Bound<'_, PyModule>) -> PyResult<()> {
fn fish_speech(_py: Python, m: Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<FireflyCodec>()?;
m.add_class::<LM>()?;
Ok(())
Expand Down