I'm trying to connect python to vtube studio #45
Unanswered
HabelKiswanto
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think the problem is on await myvts.request_authenticate_token() # get token Every time you call the function will raise VtubeStudio confirmation. Just call the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there, I see that this is a new project hence there is no help in the internet, i would be very much be helped if anyone can actually help me.
`import asyncio, pyvts
#Trigger
plugin_info = {
"plugin_name": "trigger hotkey",
"developer": "OverHome",
"authentication_token_path": "./pyvts_token.txt"
}
async def main():
myvts = pyvts.vts(plugin_info=plugin_info)
await myvts.connect()
await myvts.request_authenticate_token() # get token
await myvts.request_authenticate() # use token
response_data = await myvts.request(myvts.vts_request.requestHotKeyList())
hotkey_list = []
for hotkey in response_data['data']['availableHotkeys']:
hotkey_list.append(hotkey['name'])
send_hotkey_request = myvts.vts_request.requestTriggerHotKey(hotkey_list[0])
await myvts.request(send_hotkey_request) # send request to play 'My Animation 1'
await myvts.close()
if name == "main":
asyncio.run(main())`
Note: I am making a simple (not so simple) AI that uses openai for brain, elevenlabs for mouth, pyttsx3 for ear, and for the face and features, i really love it if i could use vtube studio.
Beta Was this translation helpful? Give feedback.
All reactions