Convai Player
Actor component for the player
Last updated
Actor component for the player
Last updated
Convai Player is an Actor component responsible for capturing microphone audio and streaming it to a Convai character.
For voice chat to work in multiplayer, this component must be added to the player's possessed object and not the PlayerController.
Functions | Returns | Description |
---|---|---|
|
| Returns |
|
| Returns True is microphone audio is been streamed, false otherwise. |
|
| Start recording audio from microphone, use "Finish Recording" function afterwards. |
|
| Stops recording from the microphone and outputs the recorded audio from microphone. |
|
| Sends text to character. |
|
| Starts streaming microphone audio to the character. Use "Finish Talking" afterwards to let the character know that you are doing talking. |
|
| Stops streaming microphone audio to the character. |
Functions | Returns | Description |
---|---|---|
|
| Returns all the available capture devices. |
|
| Gets microphone volume multiplier. |
|
| Sets the capture device name. |
| Void | Sets the microphone volume multiplier. |
| Void | Gets info about active capture device. |
Parameter | Description |
---|---|
UConvaiChatbotComponent* ConvaiChatbotComponent | The character to talk to. |
UConvaiEnvironment* Environment | Holds all relevant objects and characters in the scene including the (Player), and also all the actions doable by the character. Use the |
FString Text | Text to be sent to the character. |
bool GenerateActions | Whether or not to generate actions (Environment has to be given and valid) |
bool VoiceResponse | If true it will generate a voice response, otherwise, it will only generate a text response. |
bool RunOnServer | If true it will run this function on the server, this can be used in multiplayer sessions to allow other players to hear the character's voice response. |
bool StreamPlayerMic | If true it will stream the player's voice to other players in the multiplayer session, this is the same effect as voice chat. |