/telegram-mic-guitar-tuner

@micguitartunerbot is a Telegram Mini App that helps to tune guitars

Primary LanguageJavaScriptOtherNOASSERTION

Telegram Mic Guitar Tuner

@micguitartunerbot is a Telegram Mini App that helps guitarists tune their guitars. It uses the microphone to determine the frequency of the sound and help you to correctly adjust each string.

Demo animation

You can try it:

Features

  • Adjusting the frequency using the microphone.
  • Standart guitar tuning.
  • Telegram theme integration.

Known issues

  • Some Telegram clients may not support microphone access (mobile devices should work).

Getting Started

Running frontend locally

# Install dependencies:
yarn install

# Start the development server:
yarn dev

Open http://localhost:3000 with your browser to see the result.

Connecting to telegram

Run ngrok in order to expose the local application to the Internet:

ngrok http 3000

Create a new app using @BotFather, specify the https link of your ngrok. You can use this one as a photo.

Try to open the link in Telegram.

Running telegram bot locally [optional]

The telegram bot responds with a welcome message to any message.

Prepare the config:

cp .env.example .env

Create a new bot using @BotFather if you haven't done it yet and set the correct token in .env.

Start the bot:

yarn run bot

Write any message to the bot: Example of bot response

Start everything in docker-compose

Specify the correct TELEGRAM_TOKEN in .env.

Start docker compose containers:

docker compose up --build

Expose the frontend using ngrok: see.

License

See.