samp.directory
← Scripts et bibliothèques

qrluke/sstt

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

Plugin★ 8mis à jour août 2021Pas de licenceC++Archivé
Ouvrir sur GitHub

L’auteur a archivé ce dépôt, il n’est donc plus maintenu.

Ce dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un 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

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

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