samp.directory
← Scripts e bibliotecas

qrluke/sstt

GTA SA-MP || Speech-To-Text ASI Plugin.

Plugin★ 8atualizado ago. de 2021Sem licençaC++Arquivado
Abrir no GitHub

O autor arquivou este repositório, então ele não é mais mantido.

Este repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.

Testar no compilador Pawn →

Adiciona os arquivos de include dele, com as bibliotecas de que depende, ao compilador Pawn no seu navegador, prontos para incluir num script.

README.md

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"
}

Ссылки

asi-pluginasi-pluginsgta-sagta-sampsa-mpsampsan-andreas-multiplayerspeech-to-text

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

qrluke/sstt: Plugin de SA-MP | samp.directory