Last active
January 19, 2017 13:56
-
-
Save amit4111989/bbf269ea53f5024894d4f60c51e479f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with open(tmp_path + 'recording.wav') as inf: | |
| files = [ | |
| ('file', ('request', json.dumps(data), 'application/json; charset=UTF-8')), | |
| ('file', ('audio', inf, 'audio/L16; rate=16000; channels=1')) | |
| ] | |
| resp = requests.post(url, headers=headers, files=files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment