Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump py03 to latest to see if it fixes DYLD problems on Mac #4

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "espeak-py"
version = "0.1.8"
version = "0.1.9"
authors = ["Benjamin Levin <[email protected]>"]
edition = "2018"
description = "Python bindings for a narrow subset of espeak"
Expand All @@ -18,5 +18,5 @@ libc = "0.2"
parking_lot = "0.11"

[dependencies.pyo3]
version = "0.13.2"
version = "0.22.5"
features = ["extension-module"]
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn ensure_initialized() -> PyResult<()> {

/// Convert a string to IPA. Raises RuntimeError if espeak doesn't have the requested voice.
#[pyfunction]
#[text_signature = "(text, language=None, voice_name=None, /)"]
#[pyo3(text_signature = "(text, language=None, voice_name=None, /)")]
pub fn text_to_phonemes(text: &str, language: Option<&str>, voice_name: Option<&str>) -> PyResult<String> {
// borrow from mutex to lock entire lib until we're finished
ensure_initialized()?;
Expand Down Expand Up @@ -132,7 +132,7 @@ pub fn text_to_phonemes(text: &str, language: Option<&str>, voice_name: Option<&

/// List the names of the voices supported by this installation of espeak
#[pyfunction]
#[text_signature = "(/)"]
#[py03(text_signature = "(/)")]
pub fn list_voice_names() -> PyResult<Vec<String>> {
ensure_initialized()?;
let mut result = Vec::new();
Expand All @@ -148,7 +148,7 @@ pub fn list_voice_names() -> PyResult<Vec<String>> {

/// List the language codes supported by this installation of espeak
#[pyfunction]
#[text_signature = "(/)"]
#[py03(text_signature = "(/)")]
pub fn list_languages() -> PyResult<Vec<String>> {
ensure_initialized()?;
let mut result = Vec::new();
Expand Down
Loading