> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyLocalChatControl::GetAudioManipulationCaptureStream

> Retrieves the audio manipulation capture stream associated with this chat control.

Retrieves the audio manipulation capture stream associated with this chat control.

## Syntax

```cpp theme={null}
PartyError GetAudioManipulationCaptureStream(  
    PartyAudioManipulationSinkStream** stream  
)  
```

### Parameters

**`stream`**   [PartyAudioManipulationSinkStream\*\*](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/partyaudiomanipulationsinkstream)\
*library-allocated output*

The output stream.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

This stream represents acts as the associated chat control's audio input, i.e. the audio that will be treated as the local chat control's voice and sent to other chat controls. Typically, the app will retrieve audio from the voice manipulation stream via PartyAudioManipulationSourceStream::GetNextBuffer(), process the audio using app logic, and then submit the audio back to the library via this stream. <br /><br /> Audio that is submitted to this stream via [PartyAudioManipulationSinkStream::SubmitBuffer()](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_submitbuffer) will be transcribed via speech-to-text, if transcription options configured via [PartyLocalChatControl::SetTranscriptionOptions](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settranscriptionoptions) indicates that audio associated the sink's chat control should be.

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

- [PartyLocalChatControl::ConfigureAudioManipulationCaptureStream](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_configureaudiomanipulationcapturestream.md)
- [PartyConfigureAudioManipulationCaptureStreamCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyconfigureaudiomanipulationcapturestreamcompletedstatechange.md)
- [Apply custom voice effects with real-time audio manipulation](/services/playfab/community/voice-communications/concepts-realtime-audio-manipulation.md)
- [PartyChatControl::GetAudioManipulationVoiceStream](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getaudiomanipulationvoicestream.md)
- [PartyLocalChatControl::GetAudioManipulationRenderStream](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getaudiomanipulationrenderstream.md)
