From 23a7a9a3633ee00e5bcd329d5f15b8c3f8971f8d Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Mon, 22 May 2023 17:28:08 +0200 Subject: [PATCH] Fetch all built-in speakers (#2626) --- TTS/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/api.py b/TTS/api.py index 8bd087f6..86d36928 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -105,7 +105,7 @@ class CS_API: """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"]]