FMtoTEXT: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "This recipe is about transcribing FM radio shows with Speech Recognition. <br /> * Download the python script for that: git clone https://github.com/randaller/fm2txt.git * F...")
 
No edit summary
Line 30: Line 30:
if you get this error:
if you get this error:
<span style="color:red;">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</span>, then do this:
<span style="color:red;">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</span>, then do this:
  sudo rmmod dvb_usb_rtl28xxu rtl2832 
  sudo rmmod dvb_usb_rtl28xxu rtl2832
add:
add:
 blacklist dvb_usb_rtl28xxu 
blacklist dvb_usb_rtl28xxu <br />
 blacklist rtl2832 
 blacklist rtl2832 <br />
 blacklist rtl2830 
 blacklist rtl2830 
to: /etc/modprobe.d/blacklist.conf
 
to:  
 
/etc/modprobe.d/blacklist.conf

Revision as of 11:40, 2 October 2018

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