|
1 | 1 | ---
|
2 | 2 | id: conversation-to-speech
|
3 |
| -title: "Process conversation and return speech" |
4 |
| -description: "Processes a conversational message and returns synthesized speech" |
5 |
| -sidebar_label: "Process conversation and return speech" |
| 3 | +title: 'Process conversation and return speech' |
| 4 | +description: 'Processes a conversational message and returns synthesized speech' |
| 5 | +sidebar_label: 'Process conversation and return speech' |
6 | 6 | hide_title: true
|
7 | 7 | hide_table_of_contents: true
|
8 | 8 | api: eJztVktz2zYQ/iuYPbUztKi26YU3NfZBM53GYysnx4cVsSKRgAADgLIVDv97ZwFKpG219iGTU3ghCez721cPASsPxR34lqisIQOsyAQP9xlI8qVTbVDWQAHXzpbkPXmBorRmT84jX6EWDXmPFQk0UjgKnTNe+IMJNXn1jaQ4ybYtuci0llDAXMrG3h6JWnTYUCDHdvVgsCEokllrCRkotqbFwLSOvnbKkYQiuI4y8GVNDULRQzi0zOaDU6aCDHbWNRiggK5TEobn3q0vhd2JUJOIimC4T8LJh7+sPLDE57pKawKTFj1g22pVRkfyz54F9i9NsdvPVAZ20HEcgiIfb+kxnDP4qX0begzHOLP1ztqGg/ga3421jVhfMguZoMLhLUxXkXJk6zy5fyIGr7F99OREhGvIRtjeqCkxxYfD7ltrfIrO78slv55yrTqprPDBETbiQYX6fLbNAWKOvGmpOgvNyyzZKoPuAMmid+eMWJs9aiVTvgjOHyca5b0ylYiYfrcM8V3JlTcj3FqrCQ1kQI/YtJqg2KH2xCg7Z93rMksr3wIPCxORdsjgmH5vZJtlq6SASvvXOS8jIUkR3RDKJED4MkERVGBvk4oTPO/O5EiExdggdrYz8icaPwqNP88VS7KhTSOEK2Te+39i82OwiYaF2vLsba2PrvIYLSDHVuVp8Of9OGmHPDXS/BlUntz+OJs7p6GAOoS2yHNtS9S19aH4Y7lcvjD4b74WkvakbdtwcSZJcdQy0DfTuL06YnUcj1MUjoNvOpnm2nQ2Da3pzDz5H3iR2Nmo4hgprb6h+HArVtfrF+avrtdC2rJjy2MoxM46cWLZ/7ZYLpYXqNsaxYVYiZ2mR7XVaSnyJWrkn9V6nBc73nEerPuy+GQ+mU2tPGsVygtJXlWGpAhWbEl0nmSacShihPVBuM4YLqKkXRkf0JS0EFdGtlaZ4AVqbR+ihaUjDMpU2SfToMGKP6NNygRyWPJdkn+0zYtQO9tVrPHm6naTKHdY0gIyYOxTRGYejxWMZazgMdCn2Ly3TdMZFQ4MzCljfJHnlQp1t12UtsmJqa1Pb+Bc5RRt0Mwkjivok+YxWzqnyf8Eun7qLt9liR3rkhMzbzUqE7ck9qsf6+kOsFXTKp1BMW2v8+1kKqv7DLhymLXvt+jpo9PDwMdfO3IHKO7uM9ijU5xFsfSk8vwtx372Pz7/cjMurr+K51vufzgzHqJhxPaoO/6DDL7QYbaJD/dDBjWhJBctSrfvk96LDcuYuF909SE7cqzKktowp52WNe4Np551/eF2Axlsx328iY0ZHD5wW8CHZKONEYgNNJ71oNFUXezGkDTz8y/mYoMe
|
9 |
| -sidebar_class_name: "post api-method" |
| 9 | +sidebar_class_name: 'post api-method' |
10 | 10 | info_path: docs/rest/eliza-os-api
|
11 | 11 | custom_edit_url: null
|
12 | 12 | ---
|
13 | 13 |
|
14 |
| -import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; |
15 |
| -import ParamsDetails from "@theme/ParamsDetails"; |
16 |
| -import RequestSchema from "@theme/RequestSchema"; |
17 |
| -import StatusCodes from "@theme/StatusCodes"; |
18 |
| -import OperationTabs from "@theme/OperationTabs"; |
19 |
| -import TabItem from "@theme/TabItem"; |
20 |
| -import Heading from "@theme/Heading"; |
| 14 | +import MethodEndpoint from '@theme/ApiExplorer/MethodEndpoint'; |
| 15 | +import ParamsDetails from '@theme/ParamsDetails'; |
| 16 | +import RequestSchema from '@theme/RequestSchema'; |
| 17 | +import StatusCodes from '@theme/StatusCodes'; |
| 18 | +import OperationTabs from '@theme/OperationTabs'; |
| 19 | +import TabItem from '@theme/TabItem'; |
| 20 | +import Heading from '@theme/Heading'; |
21 | 21 |
|
22 | 22 | <Heading
|
23 |
| - as={"h1"} |
24 |
| - className={"openapi__heading"} |
25 |
| - children={"Process conversation and return speech"} |
26 |
| -> |
27 |
| -</Heading> |
| 23 | + as={'h1'} |
| 24 | + className={'openapi__heading'} |
| 25 | + children={'Process conversation and return speech'} |
| 26 | +></Heading> |
28 | 27 |
|
29 | 28 | <MethodEndpoint
|
30 |
| - method={"post"} |
31 |
| - path={"/api/agents/{agentId}/speech/conversation"} |
32 |
| - context={"endpoint"} |
33 |
| -> |
34 |
| - |
35 |
| -</MethodEndpoint> |
36 |
| - |
37 |
| - |
| 29 | + method={'post'} |
| 30 | + path={'/api/agents/{agentId}/speech/conversation'} |
| 31 | + context={'endpoint'} |
| 32 | +></MethodEndpoint> |
38 | 33 |
|
39 | 34 | Processes a conversational message and returns synthesized speech
|
40 | 35 |
|
41 | 36 | <Heading
|
42 |
| - id={"request"} |
43 |
| - as={"h2"} |
44 |
| - className={"openapi-tabs__heading"} |
45 |
| - children={"Request"} |
46 |
| -> |
47 |
| -</Heading> |
| 37 | + id={'request'} |
| 38 | + as={'h2'} |
| 39 | + className={'openapi-tabs__heading'} |
| 40 | + children={'Request'} |
| 41 | +></Heading> |
48 | 42 |
|
49 | 43 | <ParamsDetails
|
50 |
| - parameters={[{"name":"agentId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"ID of the agent"}]} |
51 |
| -> |
52 |
| - |
53 |
| -</ParamsDetails> |
| 44 | + parameters={[ |
| 45 | + { |
| 46 | + name: 'agentId', |
| 47 | + in: 'path', |
| 48 | + required: true, |
| 49 | + schema: { type: 'string', format: 'uuid' }, |
| 50 | + description: 'ID of the agent', |
| 51 | + }, |
| 52 | + ]} |
| 53 | +></ParamsDetails> |
54 | 54 |
|
55 | 55 | <RequestSchema
|
56 |
| - title={"Body"} |
57 |
| - body={{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Text message"},"roomId":{"type":"string","description":"Room ID"},"entityId":{"type":"string","description":"Entity ID"},"userName":{"type":"string","description":"User name"},"name":{"type":"string","description":"Entity name"}}}}}}} |
58 |
| -> |
59 |
| - |
60 |
| -</RequestSchema> |
| 56 | + title={'Body'} |
| 57 | + body={{ |
| 58 | + required: true, |
| 59 | + content: { |
| 60 | + 'application/json': { |
| 61 | + schema: { |
| 62 | + type: 'object', |
| 63 | + properties: { |
| 64 | + text: { type: 'string', description: 'Text message' }, |
| 65 | + roomId: { type: 'string', description: 'Room ID' }, |
| 66 | + entityId: { type: 'string', description: 'Entity ID' }, |
| 67 | + userName: { type: 'string', description: 'User name' }, |
| 68 | + name: { type: 'string', description: 'Entity name' }, |
| 69 | + }, |
| 70 | + }, |
| 71 | + }, |
| 72 | + }, |
| 73 | + }} |
| 74 | +></RequestSchema> |
61 | 75 |
|
62 | 76 | <StatusCodes
|
63 | 77 | id={undefined}
|
64 | 78 | label={undefined}
|
65 |
| - responses={{"200":{"description":"Audio stream with synthesized speech","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid agent ID or missing text","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"details":{"type":"string","description":"Detailed error information"}}}},"title":"Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"details":{"type":"string","description":"Detailed error information"}}}},"title":"Error"}}}},"500":{"description":"Error processing conversation","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"details":{"type":"string","description":"Detailed error information"}}}},"title":"Error"}}}}}} |
66 |
| -> |
67 |
| - |
68 |
| -</StatusCodes> |
69 |
| - |
70 |
| - |
71 |
| - |
| 79 | + responses={{ |
| 80 | + '200': { |
| 81 | + description: 'Audio stream with synthesized speech', |
| 82 | + content: { 'audio/mpeg': { schema: { type: 'string', format: 'binary' } } }, |
| 83 | + }, |
| 84 | + '400': { |
| 85 | + description: 'Invalid agent ID or missing text', |
| 86 | + content: { |
| 87 | + 'application/json': { |
| 88 | + schema: { |
| 89 | + type: 'object', |
| 90 | + properties: { |
| 91 | + success: { type: 'boolean', example: false }, |
| 92 | + error: { |
| 93 | + type: 'object', |
| 94 | + properties: { |
| 95 | + code: { type: 'string', description: 'Error code' }, |
| 96 | + message: { type: 'string', description: 'Error message' }, |
| 97 | + details: { type: 'string', description: 'Detailed error information' }, |
| 98 | + }, |
| 99 | + }, |
| 100 | + }, |
| 101 | + title: 'Error', |
| 102 | + }, |
| 103 | + }, |
| 104 | + }, |
| 105 | + }, |
| 106 | + '404': { |
| 107 | + description: 'Agent not found', |
| 108 | + content: { |
| 109 | + 'application/json': { |
| 110 | + schema: { |
| 111 | + type: 'object', |
| 112 | + properties: { |
| 113 | + success: { type: 'boolean', example: false }, |
| 114 | + error: { |
| 115 | + type: 'object', |
| 116 | + properties: { |
| 117 | + code: { type: 'string', description: 'Error code' }, |
| 118 | + message: { type: 'string', description: 'Error message' }, |
| 119 | + details: { type: 'string', description: 'Detailed error information' }, |
| 120 | + }, |
| 121 | + }, |
| 122 | + }, |
| 123 | + title: 'Error', |
| 124 | + }, |
| 125 | + }, |
| 126 | + }, |
| 127 | + }, |
| 128 | + '500': { |
| 129 | + description: 'Error processing conversation', |
| 130 | + content: { |
| 131 | + 'application/json': { |
| 132 | + schema: { |
| 133 | + type: 'object', |
| 134 | + properties: { |
| 135 | + success: { type: 'boolean', example: false }, |
| 136 | + error: { |
| 137 | + type: 'object', |
| 138 | + properties: { |
| 139 | + code: { type: 'string', description: 'Error code' }, |
| 140 | + message: { type: 'string', description: 'Error message' }, |
| 141 | + details: { type: 'string', description: 'Detailed error information' }, |
| 142 | + }, |
| 143 | + }, |
| 144 | + }, |
| 145 | + title: 'Error', |
| 146 | + }, |
| 147 | + }, |
| 148 | + }, |
| 149 | + }, |
| 150 | + }} |
| 151 | +></StatusCodes> |
0 commit comments