Skip to content

Commit 8b5b1c3

Browse files
committed
Update readme.md
1 parent affdf90 commit 8b5b1c3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

SDK_v1/readme.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
SDK for SlashML documentation:
22
- methods: upload_audio, transcribe, status
3-
-
3+
4+
Steps to Integrate
5+
1 - (Optional) Upload files where the data points to your audio file
6+
```
7+
speect_to_text = speechtotext.SpeechToText()
8+
file_location="/Users/JJneid/Desktop/SlashMl/s2t_experiments/api_tests/test_audio_1.mp3"
9+
# when
10+
API_KEY="1bd15e1c161ff6d4db2ea1d661d7468b4fa61ca9"
11+
model_choice="assembly"
12+
result = speect_to_text.upload_audio(file_location,API_KEY, model_choice)
13+
```
14+
Save the upload_url. You can use this url link in the rest of the calls.
15+
16+
2- Submit your audio file for transcription by sendingPOST request tohttps://api.slashml.com/speech-to-text/v1/transcribe/. The body should contain a json object with audio_url which points to an audio file that is publicly available.
17+
Save the id in the response object.
18+
19+
3 - Check the status of the transcription by sending a GETrequest tohttps://api.slashml.com/speech-to-text/v1/transcription/
420

521
Next steps:
622
- pip install slashml

0 commit comments

Comments
 (0)