Skip to content

Raspberry Pi appliance to automatically stream audio to a speech-to-text service

License

Notifications You must be signed in to change notification settings

keichan34/auto-streaming-stt

Repository files navigation

auto-streaming-stt

Raspberry Pi appliance to automatically stream audio to a speech-to-text service, use OpenAI APIs to summarize the content, and send notifications to clients using the Web Notification API.

このプロジェクトは Raspberry Pi 上で実行することを前提とし、入力音声から自動文字起こしサービスにストリーミングし、 OpenAI API を使って要約し、 Web Notification API を使って通知を送信します。

鹿児島県屋久島町の防災放送に繋いだサンプルアプリケーションはこちらで確認できます: https://bousai.yakushima.blog/

開発のきっかけ、流れなどに興味ある方はぜひ、下記のブログを参照してください。

Installation

Requires ALSA, sox, and LAME. Set your audio input as the default input.

apt install sox lame

rec command

This tool uses the following command to strip silence from the input.

sox -t alsa hw:0 -c 1 -b 16 -r 8000 -e signed-integer -t raw - silence 1 0.5 0.1% 1 0.5 0.1%

Setup

See INSTALL.md

  • Google API authentication
  • Server authentication
  • OpenAI API authentication

About

Raspberry Pi appliance to automatically stream audio to a speech-to-text service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published