Giter VIP home page Giter VIP logo

sstt's Introduction

SSTT

SA:MP Speech-To-Text is an ASI plugin that introduces voice input to gta samp.

Recognizes only Russian, although you can change the backend url manually as you want (in code, not in json).

It requires SAMP 0.3.7-R1 and ASI Loader, depends on bass.dll, libcurl.dll и zlib1.dll (all included in the release).


The following description is in Russian, because it is the main language of the user base.

Описание на русском языке.

SSTT - SA:MP Speech-To-Text

Описание: Простой ASI плагин, который записывает по удержанию клавиши звук с микрофона, сохраняет в wav, распознаёт через инфраструктуру Яндекса и возвращает результат прямо в чат сампа.

Горячие клавиши: R - говорить, P - /s [текст], N - /r [текст], J - /me [текст], L - /m [текст], B - /b [текст]

Требования: SAMP 0.3.7-R1 и ASI Loader. А так же библиотеки bass.dll, libcurl.dll и zlib1.dll (две последние есть в архиве релиза).

P.S. Для пользователей из Украины нужен VPN.

Настройка горячих клавиш

В версии от 15.07.2020 была добавлена возможность настроить свой набор фраз.
Для этого нужно выйти из игры и отредактировать файл sstt.json:

{
    "backend": 1,
    "header": "Content-Type: audio/x-wav",
    "presets": {
        "/b": {
            "key": "B",
            "text": "/b "
        },
        "/m": {
            "key": "L",
            "text": "/m "
        },
        "/me": {
            "key": "J",
            "text": "/me "
        },
        "/r": {
            "key": "N",
            "text": "/r "
        },
        "/s": {
            "key": "P",
            "text": "/s "
        },
        "prosto v chat": {
            "key": "R",
            "text": ""
        }
    },
    "url": "http://asr.yandex.net/asr_xml?uuid=12345678123456781234546112345678&disableAntimat=true&topic=general&lang=ru-RU&key=6372dda5-9674-4413-85ff-e9d0eb2f99a7"
}

Сейчас работает только смена пресетов по такому шаблону:

"nazvanie shablona": {
    "key": "Odna Knopka",
    "text": "Prefix v chat"
}

Ссылки

sstt's People

Contributors

qrluke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

themrthor

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.