Download HumeStream.py from testdump1/confusion: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/testdump1/confusion/resolve/main/HumeStream.py
- Command line
-
hf download hf://testdump1/confusion/HumeStream.py
-
curl -L -o HumeStream.py https://huggingface.co/testdump1/confusion/resolve/main/HumeStream.py
607 Bytes
| 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()) |