Skip to content

Commit

Permalink
remove from all
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Aug 28, 2024
1 parent 98eed54 commit 8bc3d9c
Show file tree
Hide file tree
Showing 44 changed files with 177 additions and 153 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dotnet-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ jobs:
run: dotnet format --verify-no-changes --no-restore
working-directory: sdk/dotnet

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: sdk/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../sdk/dotnet/Picovoice/bin/Release Picovoice
working-directory: demo/dotnet/PicovoiceDemo
# ********************************************************

- name: Run Demo Codestyle
run: dotnet format --verify-no-changes --no-restore
working-directory: demo/dotnet
20 changes: 20 additions & 0 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ jobs:
with:
dotnet-version: 6.0.x

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: sdk/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../sdk/dotnet/Picovoice/bin/Release Picovoice
# ********************************************************

- name: Dotnet build micdemo
run: dotnet build -c MicDemo.Release -v n

Expand Down Expand Up @@ -83,6 +93,16 @@ jobs:
with:
submodules: recursive

# ************** REMOVE AFTER RELEASE ********************
- name: Pack .NET SDK
run: dotnet pack -c Release
working-directory: sdk/dotnet

- name: Add local NuGet package file
continue-on-error: true
run: dotnet add package -s ../../../sdk/dotnet/Picovoice/bin/Release Picovoice
# ********************************************************

- name: Dotnet build micdemo
run: dotnet build -c MicDemo.Release -v n

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

# ************** REMOVE AFTER RELEASE ********************
- name: Install Go SDK from branch
run: go get github.com/Picovoice/picovoice/sdk/go/v3/@98eed548c1219c0bf9619550434dd5f457b6a090
# ********************************************************

- name: Build micdemo
run: go build micdemo/picovoice_mic_demo.go

Expand All @@ -58,6 +63,11 @@ jobs:
steps:
- uses: actions/checkout@v3

# ************** REMOVE AFTER RELEASE ********************
- name: Install Go SDK from branch
run: go get github.com/Picovoice/picovoice/sdk/go/v3/@98eed548c1219c0bf9619550434dd5f457b6a090
# ********************************************************

- name: Build micdemo
run: go build micdemo/picovoice_mic_demo.go

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: sdk/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

Expand Down Expand Up @@ -80,6 +86,12 @@ jobs:
with:
submodules: recursive

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: sdk/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
python -m pip install --upgrade pip
pip install wheel
# TODO: remove after release
- name: Build dependencies
run: |
python -m pip install -U pip setuptools
pip install wheel && cd ../../sdk/python && python3 setup.py sdist bdist_wheel && pip install dist/pvpicovoice-3.0.3-py3-none-any.whl
- name: Install dependencies
run: pip install -r requirements.txt

Expand Down Expand Up @@ -88,6 +94,10 @@ jobs:
python3 -m pip install --upgrade pip
pip3 install wheel
# TODO: remove after release
- name: Build dependencies
run: pip install wheel && cd ../../sdk/python && python3 setup.py sdist bdist_wheel && pip install dist/pvpicovoice-3.0.3-py3-none-any.whl

- name: Install dependencies
run: pip3 install -r requirements.txt

Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/rust-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: sdk/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: sdk/rust
Expand All @@ -63,6 +69,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: sdk/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/filedemo
Expand All @@ -89,6 +101,12 @@ jobs:
run: cargo build
working-directory: sdk/rust

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: sdk/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/micdemo
12 changes: 12 additions & 0 deletions .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: sdk/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand Down Expand Up @@ -98,6 +104,12 @@ jobs:
toolchain: nightly
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: sdk/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spoken command:
- **Accurate:** Resilient to noise and reverberation. Outperforms cloud-based alternatives by wide margins.
- **Cross-Platform:** Design once, deploy anywhere. Build using familiar languages and frameworks.
- Arm Cortex-M, STM32, Arduino, and i.MX RT
- Raspberry Pi, NVIDIA Jetson Nano, and BeagleBone
- Raspberry Pi (Zero, 3, 4, 5)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
Expand Down Expand Up @@ -199,7 +199,7 @@ picovoice_demo_mic \
--context_path resources/rhino/resources/contexts/${PLATFORM}/smart_lighting_${PLATFORM}.rhn
```

Replace `${PLATFORM}` with the platform you are running the demo on (e.g. `raspberry-pi`, `beaglebone`, `linux`, `mac`,
Replace `${PLATFORM}` with the platform you are running the demo on (e.g. `raspberry-pi`, `linux`, `mac`,
or `windows`). The microphone demo opens an audio stream from the microphone, detects utterances of a given wake
phrase, and infers intent from the follow-on spoken command. Once the demo initializes, it prints `[Listening ...]`
to the console. Then say:
Expand Down Expand Up @@ -586,7 +586,7 @@ At the root of the repository, build with:
cmake -S demo/c/. -B demo/c/build && cmake --build demo/c/build --target picovoice_demo_mic
```

#### Linux (x86_64), macOS (x86_64), Raspberry Pi, and BeagleBone
#### Linux (x86_64), macOS (x86_64, arm64), Raspberry Pi

List input audio devices with:

Expand All @@ -608,7 +608,7 @@ Run the demo using:
```

Replace `${LIBRARY_PATH}` with path to appropriate library available under [/sdk/c/lib](sdk/c/lib), `${PLATFORM}` with the
name of the platform you are running on (`linux`, `raspberry-pi`, `mac`, or `beaglebone`), and `${AUDIO_DEVICE_INDEX}` with
name of the platform you are running on (`linux`, `raspberry-pi`, or `mac`), and `${AUDIO_DEVICE_INDEX}` with
the index of your audio device.

#### Windows
Expand Down Expand Up @@ -640,7 +640,7 @@ At the root of the repository, build with:
cmake -S demo/c/. -B demo/c/build && cmake --build demo/c/build --target picovoice_demo_file
```

#### Linux (x86_64), macOS (x86_64), Raspberry Pi, and BeagleBone
#### Linux (x86_64), macOS (x86_64, arm64), Raspberry Pi

Run the demo using:

Expand All @@ -656,7 +656,7 @@ Run the demo using:
```

Replace `${LIBRARY_PATH}` with path to appropriate library available under [sdk/c/lib](sdk/c/lib), `${PLATFORM}` with the
name of the platform you are running on (`linux`, `raspberry-pi`, `mac`, or `beaglebone`).
name of the platform you are running on (`linux`, `raspberry-pi`, or `mac`).

#### Windows

Expand Down
4 changes: 2 additions & 2 deletions demo/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ target_include_directories(picovoice_demo_file PRIVATE dr_libs)
if (NOT WIN32)
target_link_libraries(picovoice_demo_mic ${COMMON_LIBS} ${MIC_LIBS})
target_link_libraries(picovoice_demo_file ${COMMON_LIBS})
if((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") AND (UNIX AND NOT APPLE))
if((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") AND (UNIX AND NOT APPLE))
target_link_libraries(picovoice_demo_mic atomic)
endif()
endif()
endif()
32 changes: 3 additions & 29 deletions demo/c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cmake -S demo/c/. -B demo/c/build -G "MinGW Makefiles" && cmake --build demo/c/b

Running the executable without any commandline arguments prints the usage info to the console.

#### Linux, macOS, Raspberry Pi, BeagleBone, Jetson
#### Linux, macOS, Raspberry Pi

```console
./demo/c/build/picovoice_demo_mic
Expand All @@ -58,7 +58,7 @@ usage : .\\demo\\c\\build\\picovoice_demo_mic.exe -l LIBRARY_PATH -a ACCESS_KEY

The following commands shows the available audio input devices to the console.

#### Linux, macOS, Raspberry Pi, BeagleBone
#### Linux, macOS, Raspberry Pi

```console
./demo/c/build/picovoice_demo_mic --show_audio_devices
Expand Down Expand Up @@ -116,19 +116,6 @@ Replace `${PROCESSOR}` with one of the Raspberry Pi processors defined [here](..
-i {AUDIO_DEVICE_INDEX}
```

#### BeagleBone

```console
./demo/c/build/picovoice_demo_mic \
-a ${ACCESS_KEY}
-l sdk/c/lib/beaglebone/libpicovoice.so \
-p resources/porcupine/lib/common/porcupine_params.pv \
-k resources/porcupine/resources/keyword_files/beaglebone/picovoice_beaglebone.ppn \
-r resources/rhino/lib/common/rhino_params.pv \
-c resources/rhino/resources/contexts/beaglebone/smart_lighting_beaglebone.rhn \
-i {AUDIO_DEVICE_INDEX}
```

#### Windows

```console
Expand Down Expand Up @@ -169,7 +156,7 @@ cmake -S demo/c/. -B demo/c/build && cmake --build demo/c/build --target picovoi

Running the executable without any commandline arguments prints the usage info to the console.

#### Linux, macOS, Raspberry Pi, BeagleBone
#### Linux, macOS, Raspberry Pi

```console
./demo/c/build/picovoice_demo_file
Expand Down Expand Up @@ -237,19 +224,6 @@ Replace `${PROCESSOR}` with one of the Raspberry Pi processors defined [here](..
-w resources/audio_samples/picovoice-coffee.wav
```

#### BeagleBone

```console
./demo/c/build/picovoice_demo_file \
-a ${ACCESS_KEY}
-l sdk/c/lib/beaglebone/libpicovoice.so \
-p resources/porcupine/lib/common/porcupine_params.pv \
-k resources/porcupine/resources/keyword_files/beaglebone/picovoice_beaglebone.ppn \
-r resources/rhino/lib/common/rhino_params.pv \
-c resources/rhino/resources/contexts/beaglebone/coffee_maker_beaglebone.rhn \
-w resources/audio_samples/picovoice-coffee.wav
```

#### Windows

```console
Expand Down
2 changes: 1 addition & 1 deletion demo/dotnet/PicovoiceDemo/PicovoiceDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

<ItemGroup>
<PackageReference Include="PvRecorder" Version="1.2.5" />
<PackageReference Include="Picovoice" Version="3.0.2" />
<PackageReference Include="Picovoice" Version="3.0.3" />
</ItemGroup>
</Project>
5 changes: 1 addition & 4 deletions demo/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ similar to Alexa and Google. But it entirely runs 100% on-device. Picovoice is
## Compatibility

- Linux (x86_64)
- macOS (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi:
- 2
- 3 (32 and 64 bit)
- 4 (32 and 64 bit)
- 5 (32 and 64 bit)
- NVIDIA Jetson Nano
- BeagleBone

## Installation

Expand Down
4 changes: 1 addition & 3 deletions demo/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ This Go module contains demos for processing real-time audio (i.e. microphone) a
- Windows (x86_64)
- Raspberry Pi:
- Zero
- 2
- 3 (32 and 64 bit)
- 4 (32 and 64 bit)
- NVIDIA Jetson Nano
- BeagleBone
- 5 (32 and 64 bit)

## AccessKey

Expand Down
3 changes: 1 addition & 2 deletions demo/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ module picovoicedemo
go 1.16

require (
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.3-0.20240828213205-98eed548c121
github.com/Picovoice/pvrecorder/binding/go v1.2.2
github.com/Picovoice/rhino/binding/go/v3 v3.0.2
github.com/go-audio/audio v1.0.0
github.com/go-audio/wav v1.0.0
)
4 changes: 2 additions & 2 deletions demo/go/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2 h1:pyAfHvqPNJvj6d6sqv2qnSe5yxtkOp0ml3VIuGr/zjM=
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.2/go.mod h1:eZULulF8trfROGO3nnWapKyIfwXhn86LMYG1hWpEIlY=
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.3-0.20240828213205-98eed548c121 h1:zy+xUXHNYDppMaFGW/3aIYYzIUmFCT69xv9qBssuNGo=
github.com/Picovoice/picovoice/sdk/go/v3 v3.0.3-0.20240828213205-98eed548c121/go.mod h1:eZULulF8trfROGO3nnWapKyIfwXhn86LMYG1hWpEIlY=
github.com/Picovoice/porcupine/binding/go/v3 v3.0.2 h1:mgvA50lIybYhfCMCwXoPvqjuyAKBppT8ZGSn/7F4ank=
github.com/Picovoice/porcupine/binding/go/v3 v3.0.2/go.mod h1:6Pg/746wMh0GDNEWqi56GuTsTk7WLeVgTB0ZhyERs8U=
github.com/Picovoice/pvrecorder/binding/go v1.2.2 h1:UN0u60hVR+s8kYmVSITS4UbTihHzeNxlNkJKYoKaVbo=
Expand Down
Loading

0 comments on commit 8bc3d9c

Please sign in to comment.