You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**aggregation_bucket_size:**`typing.Optional[int]` — Aggregation bucket size in seconds. Overrides the aggregation interval.
4379
+
4380
+
</dd>
4381
+
</dl>
4382
+
4383
+
<dl>
4384
+
<dd>
4385
+
4378
4386
**metric:**`typing.Optional[MetricType]` — Which metric to aggregate.
4379
4387
4380
4388
</dd>
@@ -4910,7 +4918,7 @@ client.webhooks.list(
4910
4918
<dl>
4911
4919
<dd>
4912
4920
4913
-
Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript.
4921
+
Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
4914
4922
</dd>
4915
4923
</dl>
4916
4924
</dd>
@@ -5086,6 +5094,14 @@ typing.Optional[core.File]` — See core.File for more documentation
5086
5094
<dl>
5087
5095
<dd>
5088
5096
5097
+
**webhook_metadata:**`typing.Optional[SpeechToTextConvertRequestWebhookMetadata]` — Optional metadata to be included in the webhook response. This should be a JSON string representing an object with a maximum depth of 2 levels and maximum size of 16KB. Useful for tracking internal IDs, job references, or other contextual information.
@@ -5200,7 +5216,7 @@ core.File` — See core.File for more documentation
5200
5216
<dl>
5201
5217
<dd>
5202
5218
5203
-
Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/conversational-ai/api-reference/agents/update-agent). </Note>
5219
+
Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
Create a composition plan for music generation. Usage of this endpoint does not cost any credits but is subject to rate limiting depending on your tier.
11710
+
</dd>
11711
+
</dl>
11712
+
</dd>
11713
+
</dl>
11714
+
11715
+
#### 🔌 Usage
11716
+
11717
+
<dl>
11718
+
<dd>
11719
+
11720
+
<dl>
11721
+
<dd>
11722
+
11723
+
```python
11724
+
from elevenlabs import ElevenLabs
11725
+
11726
+
client = ElevenLabs(
11727
+
api_key="YOUR_API_KEY",
11728
+
)
11729
+
client.music.composition_plan.create(
11730
+
prompt="prompt",
11731
+
)
11732
+
11733
+
```
11734
+
</dd>
11735
+
</dl>
11736
+
</dd>
11737
+
</dl>
11738
+
11739
+
#### ⚙️ Parameters
11740
+
11741
+
<dl>
11742
+
<dd>
11743
+
11744
+
<dl>
11745
+
<dd>
11746
+
11747
+
**prompt:**`str` — A simple text prompt to compose a plan from.
11748
+
11749
+
</dd>
11750
+
</dl>
11751
+
11752
+
<dl>
11753
+
<dd>
11754
+
11755
+
**music_length_ms:**`typing.Optional[int]` — The length of the composition plan to generate in milliseconds. Must be between 10000ms and 300000ms. Optional - if not provided, the model will choose a length based on the prompt.
11756
+
11757
+
</dd>
11758
+
</dl>
11759
+
11760
+
<dl>
11761
+
<dd>
11762
+
11763
+
**source_composition_plan:**`typing.Optional[MusicPrompt]` — An optional composition plan to use as a source for the new composition plan.
11764
+
11765
+
</dd>
11766
+
</dl>
11767
+
11768
+
<dl>
11769
+
<dd>
11770
+
11771
+
**model_id:**`typing.Optional[typing.Literal["music_v1"]]` — The model to use for the generation.
0 commit comments