diff --git a/examples/tts/tts-outetts.py b/examples/tts/tts-outetts.py index bebd38ef4a5fe..0f81192fca52d 100644 --- a/examples/tts/tts-outetts.py +++ b/examples/tts/tts-outetts.py @@ -1,6 +1,6 @@ import sys -import json -import struct +#import json +#import struct import requests import re @@ -162,7 +162,7 @@ def process_text(text: str): #print(json.dumps(response_json, indent=4)) # spectrogram -embd = response_json["data"][0]["embedding"] +embd = response_json[0]["embedding"] n_codes = len(embd) n_embd = len(embd[0])