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
Copy file name to clipboardExpand all lines: web/app/components/develop/template/template.en.mdx
+98-54
Original file line number
Diff line number
Diff line change
@@ -379,10 +379,107 @@ The text generation application offers non-session support and is ideal for tran
379
379
380
380
---
381
381
382
+
<Heading
383
+
url='/text-to-audio'
384
+
method='POST'
385
+
title='Text to Audio'
386
+
name='#audio'
387
+
/>
388
+
<Row>
389
+
<Col>
390
+
Text to speech.
391
+
392
+
### Request Body
393
+
394
+
<Properties>
395
+
<Propertyname='message_id'type='str'key='text'>
396
+
For text messages generated by Dify, simply pass the generated message-id directly. The backend will use the message-id to look up the corresponding content and synthesize the voice information directly. If both message_id and text are provided simultaneously, the message_id is given priority.
397
+
</Property>
398
+
<Propertyname='text'type='str'key='text'>
399
+
Speech generated content。
400
+
</Property>
401
+
<Propertyname='user'type='string'key='user'>
402
+
The user identifier, defined by the developer, must ensure uniqueness within the app.
Used to get basic information about this application
443
+
### Query
444
+
<Properties>
445
+
446
+
<Propertyname='user'type='string'key='user'>
447
+
User identifier, defined by the developer's rules, must be unique within the application.
448
+
</Property>
449
+
</Properties>
450
+
### Response
451
+
-`name` (string) application name
452
+
-`description` (string) application description
453
+
-`tags` (array[string]) application tags
454
+
</Col>
455
+
<Col>
456
+
<CodeGrouptitle="Request"tag="GET"label="/info"targetCode={`curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \\\n-H 'Authorization: Bearer {api_key}'`}>
457
+
```bash {{ title: 'cURL' }}
458
+
curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
459
+
-H 'Authorization: Bearer {api_key}'
460
+
```
461
+
</CodeGroup>
462
+
<CodeGrouptitle="Response">
463
+
```json {{ title: 'Response' }}
464
+
{
465
+
"name": "My App",
466
+
"description": "This is my app.",
467
+
"tags": [
468
+
"tag1",
469
+
"tag2"
470
+
]
471
+
}
472
+
```
473
+
</CodeGroup>
474
+
</Col>
475
+
</Row>
476
+
477
+
---
478
+
382
479
<Heading
383
480
url='/parameters'
384
481
method='GET'
385
-
title='Get Application Information'
482
+
title='Get Application Parameters Information'
386
483
name='#parameters'
387
484
/>
388
485
<Row>
@@ -497,56 +594,3 @@ The text generation application offers non-session support and is ideal for tran
497
594
</CodeGroup>
498
595
</Col>
499
596
</Row>
500
-
501
-
---
502
-
503
-
<Heading
504
-
url='/text-to-audio'
505
-
method='POST'
506
-
title='Text to Audio'
507
-
name='#audio'
508
-
/>
509
-
<Row>
510
-
<Col>
511
-
Text to speech.
512
-
513
-
### Request Body
514
-
515
-
<Properties>
516
-
<Propertyname='message_id'type='str'key='text'>
517
-
For text messages generated by Dify, simply pass the generated message-id directly. The backend will use the message-id to look up the corresponding content and synthesize the voice information directly. If both message_id and text are provided simultaneously, the message_id is given priority.
518
-
</Property>
519
-
<Propertyname='text'type='str'key='text'>
520
-
Speech generated content。
521
-
</Property>
522
-
<Propertyname='user'type='string'key='user'>
523
-
The user identifier, defined by the developer, must ensure uniqueness within the app.
0 commit comments