MCPcopy Index your code
hub / github.com/Pankaj-Baranwal/pocketsphinx

github.com/Pankaj-Baranwal/pocketsphinx @1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.1 ↗ · + Follow
56 symbols 168 edges 11 files 40 documented · 71% updated 8y ago★ 382 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ROS package for pocketsphinx

Original repository: https://github.com/mikeferguson/pocketsphinx

Also used repo: https://github.com/gorinars/ros_voice_control

You can know more about pocketpshinx here: https://cmusphinx.github.io/

This package is an attempt to bring offline speech recognition to ROS. Pocketsphinx already offers many easy-to-use features in this domain, hence this package can be considered as an extension of pocketsphinx in the ROS world!

Dependencies

1) pyaudio
sudo pip install pyaudio
If this does not work, follow instructions below: sudo apt-get install libasound-dev sudo apt-get install python-pyaudio 2) pocketsphinx: You will need to have pip preinstalled for this to work sudo pip install pocketsphinx There are many dependencies which need to be met before installation of pocketsphinx through pip works. Use Synaptics package manager to install the unmet dependencies which would be mentioned as error messages on the terminal window in case installation fails. Some of them include:
libpulse-dev
swig

Getting Started

Clone this repository into the src folder of your catkin workspace using:

cd ~/catkin_ws/src
git clone https://github.com/Pankaj-Baranwal/pocketsphinx

To know more about catkin workspace and ROS, follow instructions at: http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment
After everything is setup, open a terminal from your catkin workspace and type the following command:

catkin_make

Now, you are all setup. Go through the sections in wiki to find out more about how to use this package!

Core symbols most depended-on inside this repo

write_frequency_to_file
called by 3
misc/set_kws_threshold.py
kws_analysis
called by 3
misc/set_kws_threshold.py
process_threshold
called by 3
misc/set_kws_threshold.py
start_recognizer
called by 2
0.4/nodes/recognizer.py
start
called by 2
0.4/nodes/recognizer.py
actual_tuning
called by 2
misc/set_kws_threshold.py
start_recognizer
called by 2
examples/speaker_verification_example.py
pulse_index_from_name
called by 1
0.4/nodes/recognizer.py

Shape

Method 35
Function 14
Class 7

Languages

Python100%

Modules by API surface

0.4/nodes/recognizer.py13 symbols
misc/set_kws_threshold.py7 symbols
examples/speaker_verification_example.py7 symbols
nodes/kws_test.py5 symbols
nodes/asr_test.py5 symbols
nodes/send_audio.py4 symbols
examples/voice_control_example.py4 symbols
0.4/nodes/voice_cmd_vel.py4 symbols
examples/execute_commands.py3 symbols
misc/record_audio_simple.py2 symbols
misc/record_audio.py2 symbols

For agents

$ claude mcp add pocketsphinx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page