Giter Site home page Giter Site logo

antonjan / air Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.58 MB

This repository will have all my AI (Artificial intelligence) for SDR Radio

Home Page: http://www.giga.co.za

License: GNU General Public License v3.0

Python 99.28% Shell 0.72%
ai sdr air zr6aic voice voice-recognition artificial-intelligence

air's Introduction

AIR (AI for Radio)

This repository will have all my AI (Artificial intelligence) for SDR Radio. This project will have all my code for testing some of the AI concepts.
This will include Python code and shell scripts for Python 2.7 and 3.6 #Project Status All my testing scrips will be here.

Installing voice recognition.

sudo apt-get install rtl-sdr
sudo apt-get install librtl-dev
sudo apt-get install rtl-sdr
sudo -H pip install SpeechRecognition
sudo -H pip3 install speech_recognition
python -m pip install pyaudio
sudo -H pip install pyrtlsdr
sudo -H pip3 install pyrtlsdr
sudo -H pip3 install scipy
sudo -H pip install scipy

Testing voice recognition.

python -m speech_recognition
Sy somthing on Microphone and you should see the resultd on screen.
A moment of silence, please... Set minimum energy threshold to 62.43497342075616 Say something! Got it! Now to recognize it... You said hello

Testing FM sdr reception of local radio station.

sudo ./test_fm_sdr.sh
This script will test to see if you can listen to a local radio station.

Testing Voice Regocnition with rtl

test_voice_recognition_with_rtl.sh
This script will tune to a local FM radio stastion and will start decoding the voice of the presenters.

Generating voice from text to replay to Voice commands over radio.

This script will generatio voice from text to reply to Voice Recognition commands.

Text to Speach (gTTs)

Installing the gTTs library.
sudo pip install gTTS

Testing the text to Speach.

Text to speech without internet connection (using pyttsx3)
Text to speech having internet connection (using gTTS)

Creating a Hello mp3
sudo pip install gTTS
gtts-cli.py -t “Hello” -l en hopen websiteello.mp3
gtts-cli 'hello' | play -t mp3 -
Testing creating mp3 python3
python3 ./creating_hello_mp3.py

Creating a voice assystint

sudo apt-get install -qq python python-dev python-pip build-essential swig libpulse-dev sudo pip install pocketsphinx sudo apt-get install mpg321 Reqierd libraries
prerequ certifi==2017.11.5 chardet==3.0.4 gTTS==1.2.2 gTTS-token==1.1.1 idna==2.6 mpg123==0.4 PyAudio==0.2.11 pytz==2017.3 requests==2.18.4 SpeechRecognition==3.8.1 urllib3==1.22 beautifulsoup4==4.6.0 weather-api==0.0.4 Here is an exsample of personal system
sudo python3 ./persanal_asistant.py
Comands that can be used

  1. open reddit
  2. open website
  3. what's up
  4. joke
  5. current weather in .....
  6. weather forecast in ....
  7. email ....

Creating Google api keys

  1. Sign Up for a Free Tier Account

Google Cloud offers a Free Tier plan, which will be used in this tutorial. An account is required to get an API key. 2. Generate an API Key

Follow these steps to generate an API key:

Sign-in to Google Cloud Console https://console.cloud.google.com
Click “API Manager”
Click “Credentials”
Click “Create Credentials”
Select “Service Account Key”
Under “Service Account” select “New service account”
Name service (whatever you’d like)
Select Role: “Project” -> “Owner”
Leave “JSON” option selected
Click “Create”
Save generated API key file
Rename file to api-key.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.