Git Product home page Git Product logo

kookvoice's Introduction

kookvoice

kook voice golang library and cli tool.

Statement

All APIs in this project are derived from packet crawling, and these APIs may be invalidated by version updates.
You need to know that using this API violates KOOK Voice Software License and Service Agreement 3.2.3 or 3.2.5.
It also violates the terms of the KOOK Developer Privacy Policy Data Information or Abuse.

Go Library

Dependencies

Go version >= 1.18

Installation

go get github.com/shuyangzhang/kookvoice

Usage

package main

import (
    "github.com/shuyangzhang/kookvoice"
)

func main() {
    token := "1/MECxOTk=/zCX2VjWr6p+AmD84jL9asQ=="
    channel := "2559449076697969"
    input := "./test.mp3"   // Local audio path or network audio url are both valid.
    
    kookvoice.Play(token, channel, input)
}

CLI Tool

Download Binary

Go to the release page to download the binary that matches your operating system

Usage

use -h to get help message

./kookvoice-amd64-linux -h
Usage of ./kookvoice-amd64-linux:
  -c string
        channel id
  -i string
        input audio
  -t string
        bot token

binary file without -standalone- tag needs ffmpeg installed in your PATH

ffmpeg -version
./kookvoice-amd64-linux -t ${YOUR_TOKEN} -c ${YOUR_CHANNEL_ID} -i ${AUDIO_INPUT_URL_OR_PATH}

binary file with -standalone- tag can run without ffmpeg

./kookvoice-standalone-amd64-linux -t ${YOUR_TOKEN} -c ${YOUR_CHANNEL_ID} -i ${AUDIO_INPUT_URL_OR_PATH}

License

This project is licensed under the terms of the MIT license.
The binary release with -standalone- tag is licensed under terms of the GPL-3.0 license.

Credits

This project is inspired by kook-voice-API.
The standalone binaries are depends on ffmpeg-static.

kookvoice's People

Contributors

shuyangzhang avatar x1a2h1 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.