Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

How can I Request binary file #424

@Emilia0608

Description

@Emilia0608

In Unreal Engine, I want to send request using wav file and I wrote it in python like below
How can I request binary file or wav file?

import json
import requests

config = {}
resp = requests.post(
    'https://openapi.vito.ai/v1/transcribe',
    headers={'Authorization': 'bearer '+token},
    data={'config': '{}'},
    files={'file':open('hello.wav', 'rb')}
)
resp.raise_for_status()
print(resp.json())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions