Python Forum
Offline audio to text (Speech Recognition)
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Offline audio to text (Speech Recognition)
#10
Have installed the following packages after reading docs on here and elsewhere.

python3-venv
python3-pip

Then as these test servers will be accessed from another computer on the LAN, I assumed the $HOME/Public path was going to be the place to setup the 2 virtual environments. So ran this

python3 -m venv /home/********/Public/Servers/django-deepspeech-server
looked in that path and it all looks okay. But really, I would have no idea...lol

(Jan-16-2018, 03:16 AM)Larz60+ Wrote:
pip list
shows all of the packages loaded for a (your) specific version of python.
To find out which one, type:
pip -V

pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
  • section) to disable this warning.
    apt-xapian-index (0.47)
    asn1crypto (0.22.0)
    certifi (2017.4.17)
    chardet (3.0.4)
    command-not-found (0.3)
    cryptography (1.9)
    cupshelpers (1.0)
    distro-info (0.17)
    httplib2 (0.9.2)
    idna (2.5)
    keyring (10.4.0)
    keyrings.alt (2.2)
    language-selector (0.1)
    olefile (0.44)
    pexpect (4.2.1)
    Pillow (4.1.1)
    pip (9.0.1)
    pycrypto (2.6.1)
    pycups (1.9.73)
    pygobject (3.24.1)
    python-apt (1.4.0b3)
    python-debian (0.1.30)
    pyxdg (0.25)
    PyYAML (3.12)
    reportlab (3.4.0)
    requests (2.18.1)
    SecretStorage (2.3.1)
    setuptools (36.2.7)
    six (1.10.0)
    systemd-python (234)
    ubuntu-drivers-common (0.0.0)
    ufw (0.35)
    unattended-upgrades (0.1)
    urllib3 (1.21.1)
    wheel (0.29.0)
    xkit (0.0.0)

    pip3 -V
    pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

    (Jan-16-2018, 05:29 AM)wavic Wrote: Reading the part of the file is easy but what happens if the chunk ends in the middle of a word? You have to determine somehow where to cut.

    Fast googling gave me this:
    https://stackoverflow.com/questions/3645...-in-python
    https://github.com/antiboredom/audiogrep

    I hope it will give you some guidance.

    It sure will, thanks. I needed to somehow work out how to split some audios into single words, to make the 'learning' a lot easier. The packages that I'm going to test are meant to be rated at error less than 10% as it is based on Mozilla DeepSpeech, but it would be nice to add some extra learning based on single words.

    (Jan-16-2018, 05:29 AM)wavic Wrote: I found this in pypi: https://pypi.python.org/pypi/SpeechRecognition/
    It has can do it offline too. Give it a try

    Thanks, yes that was the one I initially tried, and there was a sample python script to test audio to text. It was setup to use the default, which is Sphinx/Pocketsphinx, or you can use Google, IMB/Watson or the http://wt.ai site. The transcription error rate was higher from the non Google/Youtube ones, and Google only allowed a file of very small size. So the online ones like IMB, Google, etc, you have to pay and the file has to sit on their servers. The offline ones I tested had much higher transcription errors, so not really suitable for me.

    Following the tutorial at https://python-forum.io/Thread-Basic-Par...1#pid18261 , I'm not sure how to equate the following

    Quote:# Make virtualenv that use Python 3.5
    mint@mint ~/Desktop/my_env $ virtualenv -p /usr/bin/python3.5 my_env
    mint@mint ~ $ cd my_env

    for Python 3.6 ?
Reply


Messages In This Thread
RE: Offline audio to text (Speech Recognition) - by jehoshua - Jan-16-2018, 06:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  installing anaconda packages offline HulkHogansArmsArePythons 4 7,376 Feb-18-2020, 08:23 PM
Last Post: jefsummers
  CNN Speech Classification Mitchie87 0 1,613 Dec-06-2019, 06:17 PM
Last Post: Mitchie87
  Tensorflow offline build from source on CentOS 7 riotto 3 4,021 Mar-21-2019, 07:16 PM
Last Post: riotto
  [Plot a stacked bar graph using plotly offline mode] niks250891 1 5,204 Apr-22-2018, 02:11 PM
Last Post: niks250891
  AttributeError: module 'plotly' has no attribute 'offline' charlesczc 8 17,108 Jan-21-2018, 08:34 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020