Skip to content

yanxuceo/SmartHomeHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi based Smart Home Hub

I plan to build a pi based smart home hub which can help me better organize my life. Some key features can be:

  • Audio speech recognition(ASR)
  • Text to speech(TTS)
  • A user-friendly Dashboard
  • I/O extension, reading sensor data, control actuators, etc.
  • Database for data synchronization

Software setup

Step by step, design, implement, and test each module.

Test Whisper API for speech recognition

Dependencies installation

sudo apt-get update 
sudo apt-get upgrade 
sudo apt-get install portaudio19-dev 
sudo pip install pyaudio

sudo pip install pydub
sudo apt-get install lame

sudo pip install numpy openai

Run the code

python3 pi_whisper_api.py

//it will wait for active audio input and detect audio ending

Test Azure TTS API for text to speech

Dependencies installation

//Generated audio play
sudo apt-get install portaudio19-dev 
sudo pip install pyaudio

//Azure TTS SDK and xml tree file editing
pip install azure-cognitiveservices-speech
pip install elementpath  

Run your test

usage: pi_azure_tts_api.py [-h] --text TEXT [--voice_name VOICE_NAME]
                           [--radio_speed RADIO_SPEED] [--emotion EMOTION]
                           [--emotion_degree EMOTION_DEGREE]
                           [--output_file OUTPUT_FILE]

Test Notion Database

This tutorial helped me. Tested Database page creation/query/update/delete. Here to create New Notion integrations.

My Notion page: Alt Text

Test OpenAI Function Calling

Check out what is Function Calling. This blog helped me.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Raspberry Pi based Smart home solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •