Giter Site home page Giter Site logo

htgo-tts's Introduction

HTGO-TTS

htgo-tts

https://hegedustibor.github.io/htgo-tts/

Requirement:

  • mplayer (optional)

Install

go get "github.com/hegedustibor/htgo-tts"

Update

go get -u "github.com/hegedustibor/htgo-tts"

Remove

go clean -i "github.com/hegedustibor/htgo-tts"

Import

import "github.com/hegedustibor/htgo-tts"
import "github.com/hegedustibor/htgo-tts/voices"

Use

speech := htgotts.Speech{Folder: "audio", Language: voices.English}
speech.Speak("Your sentence.")

Use with Handlers

import (
    htgotts "github.com/hegedustibor/htgo-tts"
    handlers "github.com/hegedustibor/htgo-tts/handlers"
    voices "github.com/hegedustibor/htgo-tts/voices"
)

speech := htgotts.Speech{Folder: "audio", Language: voices.English, Handler: &handlers.MPlayer{}}
speech.Speak("Your sentence.")

Use tts without external player

Note: The "Native" handler works around the Oto librery, see the "Prerequisite" section to work with this handler

import (
    htgotts "github.com/hegedustibor/htgo-tts"
    handlers "github.com/hegedustibor/htgo-tts/handlers"
    voices "github.com/hegedustibor/htgo-tts/voices"
)

speech := htgotts.Speech{Folder: "audio", Language: voices.English, Handler: &handlers.Native{}}
speech.Speak("Your sentence.")

Use with Proxy

import (
    htgotts "github.com/hegedustibor/htgo-tts"
    handlers "github.com/hegedustibor/htgo-tts/handlers"
    voices "github.com/hegedustibor/htgo-tts/voices"
)

speech := htgotts.Speech{Folder: "audio", Language: voices.English, Proxy: "https://..."}
speech.Speak("Your sentence.")

Support and Contributions

If you encounter issues using HTGO-TTS or would like to suggest improvements to the source code, you can create an issue on the "Issues" tab. If you'd like to contribute to the HTGO-TTS source code, please submit a pull request.

License

HTGO-TTS is free software and is available under the MIT license. For more information, please see the LICENSE file in the source code repository.

Have Fun!

htgo-tts's People

Contributors

hegedustibor avatar marcosvidolin avatar zivoy avatar plutov avatar dannywolfmx avatar

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.