File size: 1,317 Bytes
5610573
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PocketSphinx Documentation
============================

Welcome to the documentation for the Python interface to the
PocketSphinx speech recognizer!

Quick Start
-----------

To install PocketSphinx on most recent versions of Python, you should
be able to simply use `pip`::

  pip install pocketsphinx

This is a (somewhat) "batteries-included" install, which comes with a
default model and dictionary.  Sadly, this model is specifically for
US (and, by extension Canadian) English, so it may not work well for
your dialect and certainly won't work for your native language.

On Unix-like platforms you may need to install `PortAudio
<https://portaudio.com>`_ for live audio input to work.  Now you can
try the simplest possible speech recognizer::

  from pocketsphinx import LiveSpeech
  for phrase in LiveSpeech():
      print(phrase)

This will open the default audio device and start listening, detecting
segments of speech and printing out the recognized text, which may or
may not resemble what you actually said.

There are of course many other things you can do with it.  See
the :ref:`apidoc` for more information.

.. _apidoc:

API Documentation
-----------------

.. toctree::
   pocketsphinx
   config_params


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`