From 00a0e5ad5e4789544ddce46e442e6cd0a082e864 Mon Sep 17 00:00:00 2001 From: Albert Ho Date: Fri, 13 Sep 2024 14:42:50 -0700 Subject: [PATCH] demos --- README.md | 2 +- demo/c/README.md | 10 ---------- demo/dotnet/LeopardDemo/LeopardDemo.csproj | 8 ++++---- demo/dotnet/README.md | 4 +--- demo/go-grpc/README.md | 2 +- demo/go-grpc/go.mod | 2 +- demo/go/README.md | 4 ++-- demo/go/go.mod | 4 ++-- demo/java/README.md | 4 ++-- demo/java/build.gradle | 9 ++++++--- demo/nodejs/README.md | 4 ++-- demo/nodejs/package.json | 6 +++--- demo/nodejs/yarn.lock | 14 ++++++-------- demo/python-subtitle/README.md | 2 +- demo/python-subtitle/requirements.txt | 4 ++-- demo/python-youtube/README.md | 2 +- demo/python-youtube/requirements.txt | 4 ++-- demo/python/README.md | 4 ++-- demo/python/requirements.txt | 4 ++-- demo/python/setup.py | 4 ++-- demo/rust/README.md | 4 ++-- demo/rust/filedemo/Cargo.lock | 6 ++---- demo/rust/filedemo/Cargo.toml | 4 ++-- demo/rust/micdemo/Cargo.lock | 10 ++++------ demo/rust/micdemo/Cargo.toml | 6 +++--- 25 files changed, 56 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index 225d7ff1..b83b2fbd 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Table of Contents diff --git a/demo/c/README.md b/demo/c/README.md index 2a71613f..ab30414e 100644 --- a/demo/c/README.md +++ b/demo/c/README.md @@ -153,13 +153,3 @@ ${AUDIO_FILE_PATH} -l lib/raspberry-pi/cortex-a53-aarch64/libpv_leopard.so \ ${AUDIO_FILE_PATH} ``` - -#### NVIDIA Jetson Nano - -```console -./demo/c/build/leopard_demo \ --a ${ACCESS_KEY} \ --m lib/common/leopard_params.pv \ --l lib/jetson/cortex-a57-aarch64/libpv_leopard.so \ -${AUDIO_FILE_PATH} -``` diff --git a/demo/dotnet/LeopardDemo/LeopardDemo.csproj b/demo/dotnet/LeopardDemo/LeopardDemo.csproj index 48124eaa..63645ee7 100644 --- a/demo/dotnet/LeopardDemo/LeopardDemo.csproj +++ b/demo/dotnet/LeopardDemo/LeopardDemo.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 FileDemo.Debug;FileDemo.Release;MicDemo.Debug;MicDemo.Release @@ -19,7 +19,7 @@ - - + + - \ No newline at end of file + diff --git a/demo/dotnet/README.md b/demo/dotnet/README.md index 02a1d43c..35553d33 100644 --- a/demo/dotnet/README.md +++ b/demo/dotnet/README.md @@ -16,11 +16,10 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Android - iOS - Raspberry Pi (3, 4, 5) - - NVIDIA Jetson Nano ## Requirements -- .NET 6.0 +- .NET 8.0 ## Compatibility @@ -31,7 +30,6 @@ Leopard is an on-device speech-to-text engine. Leopard is: - 3 (32 and 64 bit) - 4 (32 and 64 bit) - 5 (32 and 64 bit) -- NVIDIA Jetson Nano ## Installation diff --git a/demo/go-grpc/README.md b/demo/go-grpc/README.md index 01ce1ae1..b3677805 100644 --- a/demo/go-grpc/README.md +++ b/demo/go-grpc/README.md @@ -5,7 +5,7 @@ A demo application that demonstrates how to implement a lightweight transcriptio ## Compatibility - go 1.16+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## AccessKey diff --git a/demo/go-grpc/go.mod b/demo/go-grpc/go.mod index 0aec7b85..61aee094 100644 --- a/demo/go-grpc/go.mod +++ b/demo/go-grpc/go.mod @@ -3,7 +3,7 @@ module leopardgogrpc go 1.18 require ( - github.com/Picovoice/leopard/binding/go/v2 v2.0.2 + github.com/Picovoice/leopard/binding/go/v2 v2.0.3 github.com/golang/protobuf v1.5.2 github.com/google/uuid v1.3.0 google.golang.org/grpc v1.53.0 diff --git a/demo/go/README.md b/demo/go/README.md index 23ae4f9c..6be74266 100644 --- a/demo/go/README.md +++ b/demo/go/README.md @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Compatibility - go 1.16+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## AccessKey diff --git a/demo/go/go.mod b/demo/go/go.mod index 36727968..2f4908b1 100644 --- a/demo/go/go.mod +++ b/demo/go/go.mod @@ -3,7 +3,7 @@ module leoparddemo go 1.16 require ( - github.com/Picovoice/leopard/binding/go/v2 v2.0.2 - github.com/Picovoice/pvrecorder/binding/go v1.2.2 + github.com/Picovoice/leopard/binding/go/v2 v2.0.3 + github.com/Picovoice/pvrecorder/binding/go v1.2.3 github.com/agnivade/levenshtein v1.1.1 // indirect ) diff --git a/demo/java/README.md b/demo/java/README.md index 630af181..906c9a67 100644 --- a/demo/java/README.md +++ b/demo/java/README.md @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Compatibility - Java 11+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## Installation diff --git a/demo/java/build.gradle b/demo/java/build.gradle index f34ff3b9..cfa94523 100644 --- a/demo/java/build.gradle +++ b/demo/java/build.gradle @@ -4,6 +4,9 @@ plugins { repositories { mavenCentral() + maven { + url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1336/' + } } sourceSets { @@ -15,14 +18,14 @@ sourceSets { } dependencies { - implementation 'ai.picovoice:leopard-java:2.0.2' + implementation 'ai.picovoice:leopard-java:2.0.3' implementation 'commons-cli:commons-cli:1.4' } jar { manifest { attributes "Main-Class": "ai.picovoice.leoparddemo.MicDemo", - "Class-Path": "leopard-2.0.2.jar;commons-cli-1.4.jar" + "Class-Path": "leopard-2.0.3.jar;commons-cli-1.4.jar" } from sourceSets.main.output exclude "**/FileDemo.class" @@ -33,7 +36,7 @@ jar { task fileDemoJar(type: Jar) { manifest { attributes "Main-Class": "ai.picovoice.leoparddemo.FileDemo", - "Class-Path": "leopard-2.0.2.jar;commons-cli-1.4.jar" + "Class-Path": "leopard-2.0.3.jar;commons-cli-1.4.jar" } from sourceSets.main.output exclude "**/MicDemo.class" diff --git a/demo/nodejs/README.md b/demo/nodejs/README.md index 4d530c64..c41ee4c4 100644 --- a/demo/nodejs/README.md +++ b/demo/nodejs/README.md @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Compatibility - Node.js 12+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## Installation diff --git a/demo/nodejs/package.json b/demo/nodejs/package.json index e59c3b0b..4713db6a 100644 --- a/demo/nodejs/package.json +++ b/demo/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@picovoice/leopard-node-demo", - "version": "2.0.3", + "version": "2.0.4", "description": "Picovoice Leopard Node.js file-based and microphone demos", "scripts": { "file": "node file.js", @@ -16,8 +16,8 @@ "author": "Picovoice Inc.", "license": "Apache-2.0", "dependencies": { - "@picovoice/leopard-node": "=2.0.3", - "@picovoice/pvrecorder-node": "=1.2.2", + "@picovoice/leopard-node": "file:../../binding/nodejs", + "@picovoice/pvrecorder-node": "=1.2.4", "commander": "^6.1.0", "readline": "^1.3.0", "wavefile": "^11.0.0", diff --git a/demo/nodejs/yarn.lock b/demo/nodejs/yarn.lock index 49550565..f62baeb4 100644 --- a/demo/nodejs/yarn.lock +++ b/demo/nodejs/yarn.lock @@ -2,15 +2,13 @@ # yarn lockfile v1 -"@picovoice/leopard-node@=2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@picovoice/leopard-node/-/leopard-node-2.0.2.tgz#537f6a8dbeefc2234e9c4c588c2dafa623ada9cf" - integrity sha512-7MFeDdKKLR+H1gyUQXX8djfKgOIQLTsRlGkxwNoXjbXyfx6lkOfYdU27+Wlyi+6dOKFW3c4DNTbCbzIzCZSyMw== +"@picovoice/leopard-node@file:../../binding/nodejs": + version "2.0.4" -"@picovoice/pvrecorder-node@=1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.2.tgz#41c39719b408e29c581b3094a9ff4c59f282b026" - integrity sha512-GuzZhWslbR4TLE3VxTiqjax8Mc8f1nB69bY5jag4ETlCxo7q/KpeUbWRvojhtNVPvpFLbospZAb6vfgxkEqgJQ== +"@picovoice/pvrecorder-node@=1.2.4": + version "1.2.4" + resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.4.tgz#1e67a1f82a144ad3c8e3f77c18fdbfe1ab5880cf" + integrity sha512-s8l6LtJnTHZ+FfIgXJZ9d8pKONSWs04v5q83F2zmfRr9IV1m7SQ5RlsmL0FO7NsB0GjIar3qHndryAQCjgSInw== commander@^6.1.0: version "6.2.1" diff --git a/demo/python-subtitle/README.md b/demo/python-subtitle/README.md index caa000ad..d9d9d484 100644 --- a/demo/python-subtitle/README.md +++ b/demo/python-subtitle/README.md @@ -2,7 +2,7 @@ ## Compatibility - Python 3.8+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## AccessKey diff --git a/demo/python-subtitle/requirements.txt b/demo/python-subtitle/requirements.txt index 71dfef7c..57269b7d 100644 --- a/demo/python-subtitle/requirements.txt +++ b/demo/python-subtitle/requirements.txt @@ -1,2 +1,2 @@ -pvleopard==2.0.1 -yt-dlp \ No newline at end of file +pvleopard==2.0.3 +yt-dlp diff --git a/demo/python-youtube/README.md b/demo/python-youtube/README.md index 696158e6..649a3532 100644 --- a/demo/python-youtube/README.md +++ b/demo/python-youtube/README.md @@ -2,7 +2,7 @@ ## Compatibility - Python 3.8+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## AccessKey diff --git a/demo/python-youtube/requirements.txt b/demo/python-youtube/requirements.txt index 71dfef7c..57269b7d 100644 --- a/demo/python-youtube/requirements.txt +++ b/demo/python-youtube/requirements.txt @@ -1,2 +1,2 @@ -pvleopard==2.0.1 -yt-dlp \ No newline at end of file +pvleopard==2.0.3 +yt-dlp diff --git a/demo/python/README.md b/demo/python/README.md index 4fe3bc88..6fd64b04 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Compatibility - Python 3.8+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## Installation diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index a801fe5a..fe1cac3c 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,3 +1,3 @@ -pvleopard==2.0.2 -pvrecorder==1.2.2 +pvleopard==2.0.3 +pvrecorder==1.2.3 tabulate==0.8.10 diff --git a/demo/python/setup.py b/demo/python/setup.py index 28ec804e..6e4fbc40 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -28,7 +28,7 @@ setuptools.setup( name="pvleoparddemo", - version="2.0.2", + version="2.0.3", author="Picovoice", author_email="hello@picovoice.ai", description="Leopard speech-to-text engine demos", @@ -36,7 +36,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/leopard", packages=["pvleoparddemo"], - install_requires=["pvleopard==2.0.2", "pvrecorder==1.2.2", "tabulate==0.8.10"], + install_requires=["pvleopard==2.0.3", "pvrecorder==1.2.3", "tabulate==0.8.10"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/demo/rust/README.md b/demo/rust/README.md index a3b52c91..ab5ab749 100644 --- a/demo/rust/README.md +++ b/demo/rust/README.md @@ -12,12 +12,12 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano + - Raspberry Pi (3, 4, 5) ## Compatibility - Rust 1.54+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano. +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5). ## Installation diff --git a/demo/rust/filedemo/Cargo.lock b/demo/rust/filedemo/Cargo.lock index 75b6f470..e67ea193 100644 --- a/demo/rust/filedemo/Cargo.lock +++ b/demo/rust/filedemo/Cargo.lock @@ -197,9 +197,7 @@ dependencies = [ [[package]] name = "pv_leopard" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488d685e12f5a72a880503d56f31e21f8df215904f58e774a4620378984fb012" +version = "2.0.3" dependencies = [ "libc", "libloading", @@ -207,7 +205,7 @@ dependencies = [ [[package]] name = "pv_leopard_filedemo" -version = "2.0.2" +version = "2.0.3" dependencies = [ "chrono", "clap", diff --git a/demo/rust/filedemo/Cargo.toml b/demo/rust/filedemo/Cargo.toml index e68e821f..8583b27e 100644 --- a/demo/rust/filedemo/Cargo.toml +++ b/demo/rust/filedemo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pv_leopard_filedemo" -version = "2.0.2" +version = "2.0.3" edition = "2018" [dependencies] @@ -8,5 +8,5 @@ chrono = "0.4.20" clap = "3.2.16" hound = "3.4.0" itertools = "0.10.3" -pv_leopard = "=2.0.2" +pv_leopard = { path = "../../../binding/rust" } tabwriter = "1.2.1" diff --git a/demo/rust/micdemo/Cargo.lock b/demo/rust/micdemo/Cargo.lock index dc176d9c..d33e443f 100644 --- a/demo/rust/micdemo/Cargo.lock +++ b/demo/rust/micdemo/Cargo.lock @@ -257,9 +257,7 @@ dependencies = [ [[package]] name = "pv_leopard" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488d685e12f5a72a880503d56f31e21f8df215904f58e774a4620378984fb012" +version = "2.0.3" dependencies = [ "libc", "libloading", @@ -267,7 +265,7 @@ dependencies = [ [[package]] name = "pv_leopard_micdemo" -version = "2.0.2" +version = "2.0.3" dependencies = [ "chrono", "clap", @@ -281,9 +279,9 @@ dependencies = [ [[package]] name = "pv_recorder" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cb1418c740637db95cb7aea6052d655f5affc8e89a86ab999d1318e3b79a4e" +checksum = "3004c0adbf3826de2ba3aff0a2e594b2f5a761a45a4bbc1c50b16277ef47b165" dependencies = [ "libc", "libloading", diff --git a/demo/rust/micdemo/Cargo.toml b/demo/rust/micdemo/Cargo.toml index efcacc05..a6c0da0d 100644 --- a/demo/rust/micdemo/Cargo.toml +++ b/demo/rust/micdemo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pv_leopard_micdemo" -version = "2.0.2" +version = "2.0.3" edition = "2018" [dependencies] @@ -9,6 +9,6 @@ clap = "3.2.16" ctrlc = "3.2.2" hound = "3.4.0" itertools = "0.10.3" -pv_leopard = "=2.0.2" -pv_recorder = "=1.2.2" +pv_leopard = { path = "../../../binding/rust" } +pv_recorder = "=1.2.3" tabwriter = "1.2.1"