Coder Social home page Coder Social logo

barktts's Introduction

Bark TTS

Bark TTS is a Text-To-Speech component for Home Assistant that allows you to generate audio using AI-generated voices supported by Bark. It provides language support and the ability to choose different announcer speakers.

Requirements

Running Bark API

To use Bark TTS, you need to run the Bark API either in a self-hosted environment or through a cloud-based solution. Here are the steps to set it up:

Self-Hosted

Option 1: NVIDIA GPU

If you have an NVIDIA GPU, run the following command:

docker run --gpus=all --name=suno-ai-bark -p 5000:5000 --restart=unless-stopped --detach=true r8.im/suno-ai/bark@sha256:b76242b40d67c76ab6742e987628a2a9ac019e11d56ab96c4e91ce03b79b2787
Option 2: CPU Only (Slower)

If you don't have an NVIDIA GPU, use the following command:

docker run --name=suno-ai-bark --env=SUNO_USE_SMALL_MODELS=True -p 5000:5000 --restart=unless-stopped --detach=true r8.im/suno-ai/bark@sha256:b76242b40d67c76ab6742e987628a2a9ac019e11d56ab96c4e91ce03b79b2787

Cloud-Based

Cloud-based deployment options are still in development and coming soon.

The Docker image is authored by Replicate.

Installation

Install the Custom Component

To install the custom component, you can use HACS (Home Assistant Community Store). Follow the steps below:

  1. Go to the HACS panel.
  2. Select Integrations.
  3. On the top right corner, click the three dots menu and choose Custom Repositories.
  4. Copy the URL https://github.com/difelice/barktts and paste it into the Repository field.
  5. Select Integration as the category.

Configure the Component

Add the following configuration to your configuration.yaml file:

  • url: The URL of the Bark API server, including the /predictions endpoint.
  • lang: The language for TTS. Optional. Defaults to the speaker announcer.

Example

Replace 192.168.1.100 with the IP address of your Bark API Docker service mentioned above.

tts:
  - platform: barktts
    url: http://192.168.1.100:5200/predictions
    lang: en

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.