Skip to content

Commit

Permalink
Fetch all built-in speakers (coqui-ai#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben authored May 22, 2023
1 parent aef7f6d commit 23a7a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def list_speakers(self):
"""List built-in Coqui Studio speakers."""
self._check_token()
conn = http.client.HTTPSConnection("app.coqui.ai")
conn.request("GET", f"{self.api_prefix}/speakers", headers=self.headers)
conn.request("GET", f"{self.api_prefix}/speakers?per_page=100", headers=self.headers)
res = conn.getresponse()
data = res.read()
return [Speaker(s) for s in json.loads(data)["result"]]
Expand Down

0 comments on commit 23a7a9a

Please sign in to comment.