File size: 607 Bytes
93aed6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from hume import HumeStreamClient
from hume.models.config import FaceConfig
from hume.models.config import ProsodyConfig

import asyncio

async def main():
    newOpenTimeOut = 3000
    newCloseTimeOut = 3000
    client = HumeStreamClient("<your-api-key-here>", open_timeout=newOpenTimeOut, close_timeout=newCloseTimeOut)
    configs = [FaceConfig(identify_faces=True), ProsodyConfig()]
    async with client.connect(configs) as socket:
        result = await socket.send_file("/Users/jetlin/Desktop/HackMercedWorkshops/HumeRunthrough/IMG_6115.MOV")
        print(result)

asyncio.run(main())