Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit e09cfff

Browse files
authored
Release 0.8.14 (#66)
1 parent c1c7a58 commit e09cfff

File tree

5 files changed

+234
-3
lines changed

5 files changed

+234
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [0.8.14](https://github.com/speechly/api/tree/0.8.14) (2023-03-02)
4+
5+
[Full Changelog](https://github.com/speechly/api/compare/0.8.13...0.8.14)
6+
7+
**Merged pull requests:**
8+
9+
- BatchAPI V2 Beta [\#65](https://github.com/speechly/api/pull/65) ([teelisyys](https://github.com/teelisyys))
10+
- Bump golang.org/x/text from 0.3.3 to 0.3.8 in /go/example [\#63](https://github.com/speechly/api/pull/63) ([dependabot[bot]](https://github.com/apps/dependabot))
11+
312
## [0.8.13](https://github.com/speechly/api/tree/0.8.13) (2023-02-21)
413

514
[Full Changelog](https://github.com/speechly/api/compare/0.8.12...0.8.13)

docs/slu.md

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,226 @@
11

2+
<a name="speechly.slu.v2beta1.BatchAPI"></a>
3+
# speechly.slu.v2beta1.BatchAPI
4+
5+
Run Speechly Batch API operations on audio sources without actively waiting the results.
6+
7+
## Methods
8+
9+
| name | request | response | description |
10+
| ---- | ------- | -------- | ----------- |
11+
| ProcessAudioSource | [ProcessAudioSourceRequest](#speechly.slu.v2beta1.ProcessAudioSourceRequest) | [ProcessAudioSourceResponse](#speechly.slu.v2beta1.ProcessAudioSourceResponse) | Create a new background Speechly Batch API operation for a one or more audio sources.<br/>Audio sources must be URIs of a files, reachable from the API<br/>The response includes an `id` that is used to match the operation to the<br/>results. A `reference` identifier can also be set.<br/>Also a `batch_reference` can be set to mark that multiple audio sources form a<br/>logical batch. In that case, the response will include a `batch_id`. |
12+
| QueryStatus | [QueryStatusRequest](#speechly.slu.v2beta1.QueryStatusRequest) | [QueryStatusResponse](#speechly.slu.v2beta1.QueryStatusResponse) | Query the status of given operations.<br/>If the `ProcessAudioSourceRequest` did not define a `destination` or `completion_webhook`<br/>as a destination, the results are returned in the `QueryStatusResponse`. |
13+
14+
## Messages
15+
16+
- [Header](#speechly.slu.v2beta1.HttpResource.Header)
17+
- [HttpResource](#speechly.slu.v2beta1.HttpResource)
18+
- [Operation](#speechly.slu.v2beta1.Operation)
19+
- [OperationResult](#speechly.slu.v2beta1.OperationResult)
20+
- [Option](#speechly.slu.v2beta1.Option)
21+
- [ProcessAudioBatchConfig](#speechly.slu.v2beta1.ProcessAudioBatchConfig)
22+
- [ProcessAudioSourceRequest](#speechly.slu.v2beta1.ProcessAudioSourceRequest)
23+
- [ProcessAudioSourceRequestItem](#speechly.slu.v2beta1.ProcessAudioSourceRequestItem)
24+
- [ProcessAudioSourceResponse](#speechly.slu.v2beta1.ProcessAudioSourceResponse)
25+
- [ProcessingConfiguration](#speechly.slu.v2beta1.ProcessingConfiguration)
26+
- [QueryStatusRequest](#speechly.slu.v2beta1.QueryStatusRequest)
27+
- [QueryStatusResponse](#speechly.slu.v2beta1.QueryStatusResponse)
28+
- [Token](#speechly.slu.v2beta1.Token)
29+
30+
31+
<a name="speechly.slu.v2beta1.HttpResource.Header"></a>
32+
### HttpResource.Header
33+
34+
A single header value.
35+
36+
#### Fields
37+
38+
| name | type | description |
39+
| ---- | ---- | ----------- |
40+
| name | [string](#string) | |
41+
| value | [string](#string) | |
42+
43+
44+
<a name="speechly.slu.v2beta1.HttpResource"></a>
45+
### HttpResource
46+
47+
Describes full properties of an HTTP endpoint.
48+
49+
#### Fields
50+
51+
| name | type | description |
52+
| ---- | ---- | ----------- |
53+
| url | [string](#string) | URL of the endpoint (protocol://server/path)<br/>Required. |
54+
| method | [Method](#speechly.slu.v2beta1.HttpResource.Method) | method to use in connection.<br/>Optional. |
55+
| headers | [Header](#speechly.slu.v2beta1.HttpResource.Header) | Possible additional headers to include in the connection.<br/>Optional. |
56+
57+
58+
<a name="speechly.slu.v2beta1.Operation"></a>
59+
### Operation
60+
61+
Describes a single batch operation.
62+
63+
#### Fields
64+
65+
| name | type | description |
66+
| ---- | ---- | ----------- |
67+
| id | [string](#string) | The id of the operation. |
68+
| reference | [string](#string) | The reference id of the operation, if given. |
69+
| batch_id | [string](#string) | The id of the batch the operation belongs to. |
70+
| batch_reference | [string](#string) | The reference id of the operation, if given. |
71+
| status | [Status](#speechly.slu.v2beta1.Operation.Status) | The current status of the operation. |
72+
| language_code | [string](#string) | The language code of the detected language. |
73+
| app_id | [string](#string) | The application context for the operation. |
74+
| result | [OperationResult](#speechly.slu.v2beta1.OperationResult) | If the operation status is STATUS_DONE and the destination is not set,<br/>the results of the processing. |
75+
| duration | [Duration](#google.protobuf.Duration) | The duration of the audio. |
76+
| error_code | [OperationError](#speechly.slu.v2beta1.Operation.OperationError) | |
77+
| error_description | [string](#string) | Contains a human readable description of the error if the operation status is<br/>STATUS_ERROR. |
78+
| source_url | [string](#string) | The locator to the source audio. |
79+
| destination_url | [string](#string) | The locator to the result target. |
80+
81+
82+
<a name="speechly.slu.v2beta1.OperationResult"></a>
83+
### OperationResult
84+
85+
Describes the results of the processing that took place.
86+
87+
#### Fields
88+
89+
| name | type | description |
90+
| ---- | ---- | ----------- |
91+
| type | [ResultType](#speechly.slu.v2beta1.OperationResult.ResultType) | The type of this result. |
92+
| text | [string](#string) | The textual representation of the results. |
93+
| tokens | [Token](#speechly.slu.v2beta1.Token) | The tokenized representation of the result. Only available if requested in the `ProcessingConfiguration`. |
94+
95+
96+
<a name="speechly.slu.v2beta1.Option"></a>
97+
### Option
98+
99+
Option to change the default behaviour of the SLU.
100+
101+
#### Fields
102+
103+
| name | type | description |
104+
| ---- | ---- | ----------- |
105+
| key | [string](#string) | The key of the option to be set. |
106+
| value | [string](#string) | The values to set the option to. |
107+
108+
109+
<a name="speechly.slu.v2beta1.ProcessAudioBatchConfig"></a>
110+
### ProcessAudioBatchConfig
111+
112+
Describes the configuration options common for the input batch.
113+
114+
#### Fields
115+
116+
| name | type | description |
117+
| ---- | ---- | ----------- |
118+
| app_id | [string](#string) | The processing context, Speechly Application ID.<br/>Optional. If not provided, the processing context will be determined<br/>from the login information. |
119+
| language_codes | [string](#string) | The language(s) of the audio sent in the request as a BCP-47 language tag<br/>(e.g. "en-US"). Defaults to the target application language(s).<br/>Optional. |
120+
| processing_config | [ProcessingConfiguration](#speechly.slu.v2beta1.ProcessingConfiguration) | Processing configuration.<br/>Required. |
121+
| batch_reference | [string](#string) | Reference id for a set of related operations. For example an identifier of the source<br/>system.<br/>Optional. |
122+
| options | [Option](#speechly.slu.v2beta1.Option) | Additional batch specific options.<br/>Optional. |
123+
124+
125+
<a name="speechly.slu.v2beta1.ProcessAudioSourceRequest"></a>
126+
### ProcessAudioSourceRequest
127+
128+
Describes a request to process audio from a pre-existing source.
129+
130+
#### Fields
131+
132+
| name | type | description |
133+
| ---- | ---- | ----------- |
134+
| config | [ProcessAudioBatchConfig](#speechly.slu.v2beta1.ProcessAudioBatchConfig) | The options shared by all of the source audios. |
135+
| source | [ProcessAudioSourceRequestItem](#speechly.slu.v2beta1.ProcessAudioSourceRequestItem) | The source audios, and their unique options. |
136+
137+
138+
<a name="speechly.slu.v2beta1.ProcessAudioSourceRequestItem"></a>
139+
### ProcessAudioSourceRequestItem
140+
141+
Describes the configuration options unique to a single audio source.
142+
143+
#### Fields
144+
145+
| name | type | description |
146+
| ---- | ---- | ----------- |
147+
| source_url | [string](#string) | The locator to the source audio.<br/>Required. |
148+
| destination_url | [string](#string) | The locator to the result target. The payload will be `Operation` as JSON.<br/>Optional. |
149+
| completion_webhook | [HttpResource](#speechly.slu.v2beta1.HttpResource) | HTTP endpoint to be notified on completion of the processing. The payload<br/>will be `Operation` as JSON.<br/>Optional. |
150+
| reference | [string](#string) | Reference id for the operation. For example an identifier of the source<br/>system.<br/>Optional. |
151+
| device_id | [string](#string) | The device ID of the audio source, for example a microphone identifier as UUID.<br/>Optional. |
152+
153+
154+
<a name="speechly.slu.v2beta1.ProcessAudioSourceResponse"></a>
155+
### ProcessAudioSourceResponse
156+
157+
Describes a response to request to process audio from a pre-existing source.
158+
159+
#### Fields
160+
161+
| name | type | description |
162+
| ---- | ---- | ----------- |
163+
| operation | [Operation](#speechly.slu.v2beta1.Operation) | The details of the created operations. |
164+
165+
166+
<a name="speechly.slu.v2beta1.ProcessingConfiguration"></a>
167+
### ProcessingConfiguration
168+
169+
Describes the processing options for the audio. Note that not all options are available for
170+
all languages or on all Payment Plans.
171+
172+
#### Fields
173+
174+
| name | type | description |
175+
| ---- | ---- | ----------- |
176+
| tokenize | [bool](#bool) | The processing should include the token level transcription and determination of time stamps for tokens. |
177+
| translate | [bool](#bool) | The processing should include translating the audio to English. |
178+
| skip_transcribe | [bool](#bool) | The processing should not include transcribing the audio to the source language. This option should be used<br/>with translate (or other similar option) to suppress the normal Speech Recognition processing. |
179+
180+
181+
<a name="speechly.slu.v2beta1.QueryStatusRequest"></a>
182+
### QueryStatusRequest
183+
184+
Query the status of an operation. At least one of these must be given.
185+
186+
#### Fields
187+
188+
| name | type | description |
189+
| ---- | ---- | ----------- |
190+
| operation_ids | [string](#string) | ID of an audio processing operation. |
191+
| operation_references | [string](#string) | Reference ID of an operation. |
192+
| batch_id | [string](#string) | ID of an audio processing batch. |
193+
| batch_reference | [string](#string) | Reference ID of a batch. |
194+
195+
196+
<a name="speechly.slu.v2beta1.QueryStatusResponse"></a>
197+
### QueryStatusResponse
198+
199+
Describes the statuses of the queried operations.
200+
201+
#### Fields
202+
203+
| name | type | description |
204+
| ---- | ---- | ----------- |
205+
| operation | [Operation](#speechly.slu.v2beta1.Operation) | The details of the audio processing operation. |
206+
207+
208+
<a name="speechly.slu.v2beta1.Token"></a>
209+
### Token
210+
211+
Describes a single meaningful unit of speech. In languages that use spaces to separate words,
212+
closely maps to those words.
213+
214+
#### Fields
215+
216+
| name | type | description |
217+
| ---- | ---- | ----------- |
218+
| token | [string](#string) | The token described. |
219+
| index | [int32](#int32) | The position of the token in the whole phrase, zero-based. |
220+
| start_time | [int32](#int32) | The end time of the token in the audio, in milliseconds from the beginning<br/>of the audio. |
221+
| end_time | [int32](#int32) | The end time of the token in the audio, in milliseconds from the beginning<br/>of the audio. |
222+
223+
2224
<a name="speechly.slu.v1.BatchAPI"></a>
3225
# speechly.slu.v1.BatchAPI
4226

javascript/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"@types/node": "^16.6",
3333
"typescript": "^4.3"
3434
},
35-
"version": "0.8.13"
35+
"version": "0.8.14"
3636
}

speechly_api.pb

13.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)