QUESTION HTTP Request on update

Discussion in 'Apps' started by lipman, Mar 19, 2022.

  1. lipman

    lipman New Member

    Joined:
    Mar 19, 2022
    Messages:
    2
    Likes Received:
    0
    Hello,

    I'm new to AC modding, but have some experience with Python and Unity game development.
    I'm trying to build an app that would do Speech to Text for chat. The way it would work is:

    1. While the user holds a button pressed I record the microphone using pyaudio to a file.
    2. After the user lets go of the button the file is saved and sent to Google API for transcribing
    3. The resulting match is then posted to the chat window.

    I already have it working outside of AC but now need to tie it all together as an app.
    I've seen that there is ac.sendChatMessage() so that will help with 3.
    Is there a way to make an http request in a non-blocking way within the update function?
    Is 1 possible to implement? I'd like the key used to be configurable through Content Manager.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,118
    Likes Received:
    380
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice