samp.directory
← Skripte und Bibliotheken

qrluke/sstt

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

Plugin★ 8aktualisiert Aug. 2021Keine LizenzC++Archiviert
Auf GitHub öffnen

Der Autor hat dieses Repository archiviert, es wird also nicht mehr gepflegt.

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

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

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

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