onurio commited on
Commit
dc9102d
1 Parent(s): db2e732

working stable

Browse files
Files changed (2) hide show
  1. output.wav +0 -0
  2. test_api.py +2 -4
output.wav CHANGED
Binary files a/output.wav and b/output.wav differ
 
test_api.py CHANGED
@@ -3,7 +3,7 @@ import base64
3
  import soundfile as sf
4
  import numpy as np
5
 
6
- API_URL = "https://dcixo8iy1d0t2cq9.us-east-1.aws.endpoints.huggingface.cloud"
7
  headers = {
8
  "Accept" : "application/json",
9
  "Authorization": "Bearer token",
@@ -19,9 +19,7 @@ response = query({
19
  "parameters": {}
20
  })
21
 
22
- print(response)
23
-
24
- audio_data = response["audio_data"]
25
  sampling_rate = response["sampling_rate"]
26
 
27
  # Write the audio data to a WAV file
 
3
  import soundfile as sf
4
  import numpy as np
5
 
6
+ API_URL = "https://qg5sx5kndg4rp1gn.us-east-1.aws.endpoints.huggingface.cloud"
7
  headers = {
8
  "Accept" : "application/json",
9
  "Authorization": "Bearer token",
 
19
  "parameters": {}
20
  })
21
 
22
+ audio_data = np.array(response["audio_data"], dtype=np.float32)
 
 
23
  sampling_rate = response["sampling_rate"]
24
 
25
  # Write the audio data to a WAV file