Skip to content

Commit

Permalink
demos
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Sep 13, 2024
1 parent 2f184ec commit 00a0e5a
Show file tree
Hide file tree
Showing 25 changed files with 56 additions and 71 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 0 additions & 10 deletions demo/c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```
8 changes: 4 additions & 4 deletions demo/dotnet/LeopardDemo/LeopardDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Configurations>FileDemo.Debug;FileDemo.Release;MicDemo.Debug;MicDemo.Release</Configurations>
</PropertyGroup>

Expand All @@ -19,7 +19,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PvRecorder" Version="1.2.5" />
<PackageReference Include="Leopard" Version="2.0.2" />
<PackageReference Include="PvRecorder" Version="1.2.6" />
<PackageReference Include="Leopard" Version="2.0.3" />
</ItemGroup>
</Project>
</Project>
4 changes: 1 addition & 3 deletions demo/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion demo/go-grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion demo/go-grpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demo/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions demo/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
4 changes: 2 additions & 2 deletions demo/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 6 additions & 3 deletions demo/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ plugins {

repositories {
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1336/'
}
}

sourceSets {
Expand All @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions demo/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions demo/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
14 changes: 6 additions & 8 deletions demo/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion demo/python-subtitle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions demo/python-subtitle/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pvleopard==2.0.1
yt-dlp
pvleopard==2.0.3
yt-dlp
2 changes: 1 addition & 1 deletion demo/python-youtube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions demo/python-youtube/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pvleopard==2.0.1
yt-dlp
pvleopard==2.0.3
yt-dlp
4 changes: 2 additions & 2 deletions demo/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions demo/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pvleopard==2.0.2
pvrecorder==1.2.2
pvleopard==2.0.3
pvrecorder==1.2.3
tabulate==0.8.10
4 changes: 2 additions & 2 deletions demo/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

setuptools.setup(
name="pvleoparddemo",
version="2.0.2",
version="2.0.3",
author="Picovoice",
author_email="[email protected]",
description="Leopard speech-to-text engine demos",
long_description=long_description,
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",
Expand Down
4 changes: 2 additions & 2 deletions demo/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 2 additions & 4 deletions demo/rust/filedemo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions demo/rust/filedemo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "pv_leopard_filedemo"
version = "2.0.2"
version = "2.0.3"
edition = "2018"

[dependencies]
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"
10 changes: 4 additions & 6 deletions demo/rust/micdemo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions demo/rust/micdemo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pv_leopard_micdemo"
version = "2.0.2"
version = "2.0.3"
edition = "2018"

[dependencies]
Expand All @@ -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"

0 comments on commit 00a0e5a

Please sign in to comment.