Skip to content

Commit

Permalink
Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Feb 6, 2024
1 parent 5a048a8 commit e916f7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion binding/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Cheetah is an on-device speech-to-text engine. Cheetah is:
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
- Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano

## Compatibility

Expand Down
2 changes: 1 addition & 1 deletion binding/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_cheetah"
version = "2.0.0"
version = "2.0.1"
edition = "2018"
description = "The Rust bindings for Picovoice's Cheetah library"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions binding/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Cheetah is an on-device streaming speech-to-text engine. Cheetah is:
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
- Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano

## Compatibility

- Rust 1.54+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano.

## Installation

Expand Down
3 changes: 2 additions & 1 deletion binding/rust/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ fn find_machine_type() -> String {
"0xd03" => "cortex-a53",
"0xd07" => "cortex-a57",
"0xd08" => "cortex-a72",
"0xd0b" => "cortex-a76",
_ => "unsupported",
};

Expand Down Expand Up @@ -72,7 +73,7 @@ fn base_library_path() -> PathBuf {

#[cfg(all(target_os = "linux", any(target_arch = "arm", target_arch = "aarch64")))]
fn base_library_path() -> PathBuf {
const RPI_MACHINES: [&str; 2] = ["cortex-a53", "cortex-a72"];
const RPI_MACHINES: [&str; 2] = ["cortex-a53", "cortex-a72", "cortex-a76"];
const JETSON_MACHINES: [&str; 1] = ["cortex-a57"];

let machine = find_machine_type();
Expand Down

0 comments on commit e916f7e

Please sign in to comment.