hume-python-sdk
hume-python-sdk copied to clipboard
bytes argument to HumeBatchClient.submit_job() instead of only accepting file paths
allow sending a file as bytes to the batch API.
Not sure how you feel about merge commits here...I wrote this before the latest release.
client = HumeBatchClient(getenv("HUME_API_KEY"), timeout=300)
configs = [
BurstConfig(),
ProsodyConfig(),
]
with audio_filepath.open("rb") as f:
audio_file_bytes = f.read()
job = client.submit_job(
[],
configs=configs,
filebytes=[(f"{audio_fake_filename}", audio_file_bytes)],
)
Thanks for the pull request @josh3io! Our team is a bit busy with the product launch, but we'll try to get back to you next week with a review!
Yeah no worries hope your team and the community finds it helpful
On Thu, Apr 25, 2024 at 5:23 PM Chris Gregory @.***> wrote:
Thanks for the pull request @josh3io https://github.com/josh3io! Our team is a bit busy with the product launch, but we'll try to get back to you next week with a review!
— Reply to this email directly, view it on GitHub https://github.com/HumeAI/hume-python-sdk/pull/121#issuecomment-2078385055, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD6KYRWTIYB4GPLVV7KMSDY7GNBRAVCNFSM6AAAAABGV2TEESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGM4DKMBVGU . You are receiving this because you were mentioned.Message ID: @.***>
Tests are passing (finally), but I will do a few more manual tests before merging
Thanks for your contribution and patience @josh3io !!
Thanks Chirs and team for a great product and your help with final integration on this PR!
On Tue, Jun 18, 2024 at 3:03 PM Chris Gregory @.***> wrote:
Thanks for your contribution and patience @josh3io https://github.com/josh3io !!
— Reply to this email directly, view it on GitHub https://github.com/HumeAI/hume-python-sdk/pull/121#issuecomment-2177154300, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACD6KYQDFYVZ4IDAOA3KKB3ZICVCXAVCNFSM6AAAAABGV2TEESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGE2TIMZQGA . You are receiving this because you were mentioned.Message ID: @.***>