Octopus Speech-to-Index
Python Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
Requirements
- Picovoice Account & AccessKey
- Python 3
- PIP
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install Python 3.
Install the pvoctopus Python package using PIP:
Usage
Create an instance of the engine and index an audio file by passing in the absolute path to the file:
Search audio using the generated metadata object:
Free resources used by Octopus Speech-to-Index
:
Non-English Languages
Use the corresponding model file (.pv
), to index and search non-English data.
The model files for all supported languages are available
on the Octopus Speech-to-Index GitHub repository.
Pass in the model file using the model_path
input argument to change the detection language:
Demo
For the Octopus Speech-to-Index Python SDK, we offer demo applications that demonstrate how to use the Speech-to-Index engine on audio files.
Setup
Install the pvoctopusdemo Python package using PIP:
This package installs command-line utilities for the Octopus Speech-to-Index Python demos.
Usage
Use the --help
flag to see the usage options for the demo:
Run the following command to transcribe an audio file:
For more information on our Octopus Speech-to-Index demos for Python, head over to our GitHub repository.