FMtoTEXT

From XPUB & Lens-Based wiki
Revision as of 10:40, 2 October 2018 by Angeliki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This recipe is about transcribing FM radio shows with Speech Recognition.

  • Download the python script for that:
git clone https://github.com/randaller/fm2txt.git
  • Follow the installation instructions BUT first erase the pyaudio and speech_recognition from the requirements file. After installing whats in the requirements file (pip install -r requirements.txt) do this:
pip install SpeechRecognition
sudo apt-get install libasound-dev
sudo apt-get install portaudio19-dev
pip install pyaudio –user
sudo apt install cmake
sudo apt-get install libusb-1.0-0-dev
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig

cmake ../ -DINSTALL_UDEV_RULES=ON
  • Try
python listen.py --freq=95000000

if you get this error: Kernel driver is active, or device is claimed by second instance of librtlsdr. In the first case, please either detach or blacklist the kernel module (dvb_usb_rtl28xxu), or enable automatic detaching at compile time. usb_claim_interface error -6, then do this:

sudo rmmod dvb_usb_rtl28xxu rtl2832

add:

blacklist dvb_usb_rtl28xxu 
blacklist rtl2832 
blacklist rtl2830 

to:

/etc/modprobe.d/blacklist.conf