Row 5017

Row ID: 5017 | Dataset Entry | Axioma AXP Content Repository

Content Data

This page contains data entry 5017 from the Axioma AXP content repository. The structured data below represents the complete record for this entry.

Hello all,

For context, I am using GPT4 API to perform Text-To-Speech and whenever I pass in a large amount of text the latency can reach up to almost a minute. I was wondering if there was a way to decrease the latency?

What I've found out so far. In the FAQ ([https://help.openai.com/en/articles/8555505-tts-api](https://help.openai.com/en/articles/8555505-tts-api)), they mention that we can stream the audio in chunks by setting stream=True.

I've tried this by using the code below:

response = self.client.audio.speech.create( *model*="tts-1", *voice*="shimmer", *input*=msg, *stream*=True)

But I'm getting this error: TypeError: Speech.create() got an unexpected keyword argument 'stream'

So I'm a bit confused why it says that "stream" doesn't exist when in their site it says that it does?

Any help is greatly appreciated 🙏

FieldValue
text Hello all, For context, I am using GPT4 API to perform Text-To-Speech and whenever I pass in a large amount of text the latency can reach up to almost a minute. I was wondering if there was a way to decrease the latency? What I've found out so far. In the FAQ ([https://help.openai.com/en/articles/8555505-tts-api](https://help.openai.com/en/articles/8555505-tts-api)), they mention that we can stream the audio in chunks by setting stream=True. I've tried this by using the code below: response …
label r/gpt4
dataType post
communityName r/GPT4
datetime 2024-04-25
username_encoded Z0FBQUFBQm5LakwyTzJycE5KaXJyak5MVVVRb19vZXVtdFo0N1p6aWpSMV9fdzNPY09zdGRCSjB1M1pDSTVKeHdNMVQyc3poT2xONFduNnhHY1lKeHU4MVFheWlWMWh6aGtybFFvYWNJZ3phUWVmOV91V2FkZzA9
url_encoded Z0FBQUFBQm5Lak9GM1kxMmRZdmxfcUZUdHRvcDRxa3JtY2dmVTJfWTd2UVZxVlNlcG9xeEtKVmIxSDMxQXBBWjVpX2wyOEJDd0FyNzBFazFCQTAtd1RXclNfbUVoVEh1b0FxV2NLVzJ4VnFhOXZiR2F3VmJRUFVEa0hDN0gyQUVpVmN0VXhOckJ4V1Q3TUJyNzNvek1nMTQ4T1BubWNWNnNmMV9tSzIwU2Y3dlBnMGVEZ3VOeDM1N2hlZkgwZVJMRVZMbXdkOHIwS1pZ

Raw Record

{
  "text": "Hello all,\n\nFor context, I am using GPT4 API to perform Text-To-Speech and whenever I pass in a large amount of text the latency can reach up to almost a minute. I was wondering if there was a way to decrease the latency?\n\nWhat I've found out so far. In the FAQ ([https://help.openai.com/en/articles/8555505-tts-api](https://help.openai.com/en/articles/8555505-tts-api)), they mention that we can stream the audio in chunks by setting stream=True.\n\nI've tried this by using the code below:\n\nresponse = self.client.audio.speech.create(  \n *model*=\"tts-1\",  \n *voice*=\"shimmer\",  \n *input*=msg,  \n *stream*=True)\n\nBut I'm getting this error:  \nTypeError: Speech.create() got an unexpected keyword argument 'stream'\n\nSo I'm a bit confused why it says that \"stream\" doesn't exist when in their site it says that it does?\n\nAny help is greatly appreciated 🙏",
  "label": "r/gpt4",
  "dataType": "post",
  "communityName": "r/GPT4",
  "datetime": "2024-04-25",
  "username_encoded": "Z0FBQUFBQm5LakwyTzJycE5KaXJyak5MVVVRb19vZXVtdFo0N1p6aWpSMV9fdzNPY09zdGRCSjB1M1pDSTVKeHdNMVQyc3poT2xONFduNnhHY1lKeHU4MVFheWlWMWh6aGtybFFvYWNJZ3phUWVmOV91V2FkZzA9",
  "url_encoded": "Z0FBQUFBQm5Lak9GM1kxMmRZdmxfcUZUdHRvcDRxa3JtY2dmVTJfWTd2UVZxVlNlcG9xeEtKVmIxSDMxQXBBWjVpX2wyOEJDd0FyNzBFazFCQTAtd1RXclNfbUVoVEh1b0FxV2NLVzJ4VnFhOXZiR2F3VmJRUFVEa0hDN0gyQUVpVmN0VXhOckJ4V1Q3TUJyNzNvek1nMTQ4T1BubWNWNnNmMV9tSzIwU2Y3dlBnMGVEZ3VOeDM1N2hlZkgwZVJMRVZMbXdkOHIwS1pZ"
}

Entry Information