The ADI service provides functions for recording and playing speech data.
Choose a set of functions to initiate record and play operations as appropriate to your application's data transfer method, according to the following table:
Operation |
Memory transaction |
Asynchronous |
Callback |
|---|---|---|---|
Play |
|||
Record |
The ADI service provides the following functions to stop record and play regardless of the data transfer method:
Function |
Synchronous/ |
Description |
|---|---|---|
Asynchronous |
Terminates playing. |
|
Asynchronous |
Terminates recording. |
For the asynchronous data transfer methods, a buffer is submitted using one of the following functions:
Function |
Synchronous/ |
Description |
|---|---|---|
Asynchronous |
Supplies a buffer to an asynchronous play operation. |
|
Asynchronous |
Supplies a buffer for an asynchronous record operation. |
The following functions provide status information or modify an active record or play operation:
Function |
Synchronous/ |
Description |
|---|---|---|
Synchronous |
Changes the gain applied to the speech while playing. |
|
Synchronous |
Changes the play speed while playing. |
|
Synchronous |
Retrieves play (or last play) status. |
|
Synchronous |
Retrieves record (or last record) status. |
|
Synchronous |
Returns frame size, data rate, and maximum buffer size for a given encoding format. |
|
Asynchronous |
Sends a data array containing raw commands to an actively running recording function. Use this function to enable voice activity detection. |