1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-11-26 22:50:58 +02:00
Files
Irene-Voice-Assistant/plugins/plugin_playwav_consolewav.py

33 lines
725 B
Python

# Playwav plugin for console engine (debug)
# author: Vladislav Janvarev
import os
from vacore import VACore
modname = os.path.basename(__file__)[:-3] # calculating modname
# функция на старте
def start(core:VACore):
manifest = {
"name": "PlayWav through console",
"version": "1.0",
"require_online": False,
"playwav": {
"consolewav": (init,playwav) # первая функция инициализации, вторая - проиграть wav-файл
}
}
return manifest
def start_with_options(core:VACore, manifest:dict):
pass
def init(core:VACore):
pass
def playwav(core:VACore, wavfile:str):
print(wavfile)
return