PocketSphinx Python
Python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG. Pocketsphinx packages include python support, however, it is based on Automake and not well supported on Windows. Pocketsphinx is part of the CMU Sphinx Open Source Toolkit For Speech Recognition.
This package provides module created with Python distutils setup and can be more portable.
Supported Platforms
Windows 7
Windows 8
Ubuntu 14.04
Install on Windows
Requirements
Install
# From pip
$ pip install pocketsphinx
# From source
$ git clone --recursive https://github.com/bambocher/pocketsphinx-python
$ cd pocketsphinx-python
$ python setup.py install
Install on Ubuntu
Requirements
python
python-dev
python-pip
build-essential
swig
git
Install
# From pip
$ sudo apt-get install -qq python python-dev python-pip build-essential swig
$ sudo pip install pocketsphinx
# From source
$ sudo apt-get install -qq python python-dev python-pip build-essential swig git
$ git clone --recursive https://github.com/bambocher/pocketsphinx-python
$ cd pocketsphinx-python
$ sudo python setup.py install
Basic usage
#!/usr/bin/env python
import os
import sphinxbase as sb
import pocketsphinx as ps
MODELDIR = 'deps/pocketsphinx/model'
DATADIR = 'deps/pocketsphinx/test/data'
# Create a decoder with certain model
config = ps.Decoder.default_config()
config.set_string('-hmm', os.path.join(MODELDIR, 'en-us/en-us'))
config.set_string('-lm', os.path.join(MODELDIR, 'en-us/en-us.lm.bin'))
config.set_string('-dict', os.path.join(MODELDIR, 'en-us/cmudict-en-us.dict'))
decoder = ps.Decoder(config)
# Decode streaming data.
decoder.start_utt()
stream = open(os.path.join(DATADIR, 'goforward.raw'), 'rb')
while True:
buf = stream.read(1024)
if buf:
decoder.process_raw(buf, False, False)
else:
break
decoder.end_utt()
stream.close()
print('Best hypothesis segments:', [seg.word for seg in decoder.seg()])
Projects using pocketsphinx-python
SpeechRecognition - Library for performing speech recognition, with support for several engines and APIs, online and offline.
License
Metadata
Release files for pocketsphinx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pocketsphinx-0.1.0.zip | 723.4 kB | Without provenance | Details for pocketsphinx-0.1.0.zip | |
| pocketsphinx-0.1.0.tar.gz | 503.4 kB | Without provenance | Details for pocketsphinx-0.1.0.tar.gz |
Built distributions (wheels)
Total release size: 11.7 MB
Release files / pocketsphinx-0.1.0.zip
| Download URL | pocketsphinx-0.1.0.zip |
|---|---|
| Size | 723.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
666afa2b28ea6d8de64149aa82811296aed6e2a28e41073b55c59a9016fd7065
|
|
BLAKE2b-256 checksum How to use checksums |
1a765ffb2705121b3eb53ac847a694535d8d6d2a3a807d9bb79f8a679a437227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.tar.gz
| Download URL | pocketsphinx-0.1.0.tar.gz |
|---|---|
| Size | 503.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cc493ed48c1301e0d2e69b137dc646c2f8caca190ef4bce61836eac96d1796f
|
|
BLAKE2b-256 checksum How to use checksums |
25731d4f4734e2afe72bec6756853e7cdcffbb05115045fcea471224537243bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win-amd64-py3.5.msi
| Download URL | pocketsphinx-0.1.0.win-amd64-py3.5.msi |
|---|---|
| Size | 630.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f256e88c0b322f7eb402195036675a3ec3671a9e8d9323cd84c0d044199c86d
|
|
BLAKE2b-256 checksum How to use checksums |
2d95baa873ed5257b24f4fab937290108156b9e1b7b139364df7f599e4309b2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win-amd64-py3.5.exe
| Download URL | pocketsphinx-0.1.0.win-amd64-py3.5.exe |
|---|---|
| Size | 677.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b0b1125f9af2fe5f46985d065565353f6682592fc3022d1e2cc8a9a2b4b59b0
|
|
BLAKE2b-256 checksum How to use checksums |
f0dcf2aa5a7e705378c7cbbc4f1d4451d1214c9dd188207e9c571db99e7b1c2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win-amd64-py2.7.msi
| Download URL | pocketsphinx-0.1.0.win-amd64-py2.7.msi |
|---|---|
| Size | 639.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e06788044c675e24e97ba4a95beca470a46a87d4be3b712d9f863180bdd2de66
|
|
BLAKE2b-256 checksum How to use checksums |
911df55fe20f9660ea63fbbee5404207ced71585f393e00723fa1ac8dbc92dd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win-amd64-py2.7.exe
| Download URL | pocketsphinx-0.1.0.win-amd64-py2.7.exe |
|---|---|
| Size | 716.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c148112a14f9f8090c83e077ac74cdaeb7e265b69805346db9ef8f5457cf03c8
|
|
BLAKE2b-256 checksum How to use checksums |
63efe8b802798e43edde8ad02eeb6d36970278f6ce009a45075258aab1300de1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win32-py3.5.msi
| Download URL | pocketsphinx-0.1.0.win32-py3.5.msi |
|---|---|
| Size | 499.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af27a3faa2fead977bebf8aa1f1e8ae847c944a083bbc917a83a6418899b82ef
|
|
BLAKE2b-256 checksum How to use checksums |
0e604eb7bef5db3d4ec4ec3757fe22f20f0ba1bb1ee9f0204a74f8bedb2042a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win32-py3.5.exe
| Download URL | pocketsphinx-0.1.0.win32-py3.5.exe |
|---|---|
| Size | 539.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78c8dc9a31ad0d913e9514c4b8e9a408f1534a60a3deca095dad5452f180fb67
|
|
BLAKE2b-256 checksum How to use checksums |
8382ee5f031200a376319b690c35703b01cb5779749b6cce7aa43c640c253cf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win32-py2.7.msi
| Download URL | pocketsphinx-0.1.0.win32-py2.7.msi |
|---|---|
| Size | 540.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab6be490dc7ba4ae02d75000f3015b113db17fa2aab16b10fb146302e7c432cb
|
|
BLAKE2b-256 checksum How to use checksums |
c625f40fe37e9f305a99c9968ca68f81074be4b9dfc95632f7f40215200a7962
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0.win32-py2.7.exe
| Download URL | pocketsphinx-0.1.0.win32-py2.7.exe |
|---|---|
| Size | 591.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4994d50939a664f71f8df6bb6db9fc366241263fa9d9dc4d333a3e046a2d3a2
|
|
BLAKE2b-256 checksum How to use checksums |
05141fc2899825ef7bc136a0bab1208c52a488ed7b05711fbb1d3e866ab7a541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py3.5-win-amd64.egg
| Download URL | pocketsphinx-0.1.0-py3.5-win-amd64.egg |
|---|---|
| Size | 551.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1ff9120d4f537609c1cf38a2e6e789f8c95c07918e56c9aca99e15ab81beb341
|
|
BLAKE2b-256 checksum How to use checksums |
369f88460b4a91ba2a0fe740aef09551be0252ee7cb617d2642c1104743cea3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py3.5-win32.egg
| Download URL | pocketsphinx-0.1.0-py3.5-win32.egg |
|---|---|
| Size | 420.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
e7ad00182d3a5fe9868dabd764ee454df32643f48978b35a97369773bd7a8e56
|
|
BLAKE2b-256 checksum How to use checksums |
2622d662d83e4543fa042491bd2361419113fb54e0e73418e6895ecbd79aeea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py3.5-linux-x86_64.egg
| Download URL | pocketsphinx-0.1.0-py3.5-linux-x86_64.egg |
|---|---|
| Size | 1.4 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
08c2abdbdfd351f68ceead52f0a877354d955937af22ed89dc6b913819ef6944
|
|
BLAKE2b-256 checksum How to use checksums |
019ac5b672335add15b88067494d1f48b498b9b4796cd855973170b2e0e564f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py2.7-win-amd64.egg
| Download URL | pocketsphinx-0.1.0-py2.7-win-amd64.egg |
|---|---|
| Size | 502.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
21bbcc16f1be831d1c7bc5a9657c2fd3af298dbf8fe3aae0b81baec7f6fa281f
|
|
BLAKE2b-256 checksum How to use checksums |
2953510fbc8569b6d76713151ba0ed85597ab3e790eee73c8b9bfbafd2029b92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py2.7-win32.egg
| Download URL | pocketsphinx-0.1.0-py2.7-win32.egg |
|---|---|
| Size | 404.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
e667081c0daaa0bd8465b64e6b9f3ca132a4a265dfaced69b0de1000d22f8883
|
|
BLAKE2b-256 checksum How to use checksums |
b500c317fbefcdcdf04ccab2ad35d746faa4e776c777d22e9b2bea13e4c1decc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-py2.7-linux-x86_64.egg
| Download URL | pocketsphinx-0.1.0-py2.7-linux-x86_64.egg |
|---|---|
| Size | 540.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6e591d6a46a85f09ce2e1bfe84317c5901c893b669b898a9d42a96ee5e4bbea2
|
|
BLAKE2b-256 checksum How to use checksums |
bf5e555ef6fd2fc9fdae688489d677d876b43f40961e5cba80512ce7876c5fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-cp35-cp35m-win_amd64.whl
| Download URL | pocketsphinx-0.1.0-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 537.6 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9cc27b5eb822dd53889942387e1134d7b808c579fa518aa5e1cb9ddbf3c0bcc9
|
|
BLAKE2b-256 checksum How to use checksums |
91ee429281edb3366c4fc9491f1e38f63c17683dd6b3d76c97cc62ba6f9b504e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-cp35-cp35m-win32.whl
| Download URL | pocketsphinx-0.1.0-cp35-cp35m-win32.whl |
|---|---|
| Size | 407.0 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
eb21d41c9f6e14530b19ce3ad6b5a94290345a75497a8d4c06d2aa85b0c29a3c
|
|
BLAKE2b-256 checksum How to use checksums |
83c7fd47e31a848c05562fe8c6f221fff7a45a030f08d026d0d397aabf48d903
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-cp27-cp27m-win_amd64.whl
| Download URL | pocketsphinx-0.1.0-cp27-cp27m-win_amd64.whl |
|---|---|
| Size | 489.3 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1fae2207ff840ac89b7cb87798608dd716979f147986b42ab697aa48910baaa3
|
|
BLAKE2b-256 checksum How to use checksums |
8671442d44face1349cd4b71aab9ba8a786e64708d617126ca262702da3d04c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pocketsphinx-0.1.0-cp27-cp27m-win32.whl
| Download URL | pocketsphinx-0.1.0-cp27-cp27m-win32.whl |
|---|---|
| Size | 391.7 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
36cdc1b1f2195541668d7d3dbd325e250119c6836db0aa7f1cb6d00ce79d59e8
|
|
BLAKE2b-256 checksum How to use checksums |
c3832ef97583d8dd8c23448cff9cae22279fbf9e871ee522a72b776e09810827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pocketsphinx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.