docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Audio Streaming Component

    AudioStreamSender class and AudioStreamReceiver class are the base classes for sending and receiving audio. Components are provided for the sender and receiver.

    AudioStreamSender component reference

    This component streams the audio rendering results from AudioListener component or AudioSource component.

    AudioStreamSender inspector

    Properties

    Parameter Description Default
    Audio Source Type Choose the type of source for your audio streaming.
    - Audio Listener
    - Audio Source
    - Microphone
    Audio Listener
    Audio Listener Audio Listener instance for sending audio
    Audio Source Audio Source instance for sending audio
    Microphone Device Index The index of the microphone input device to be used. See Microphone.devices. 0
    Auto Request User Authorization Whether request permission to use microphone. You don't need to enable it if you call Application.RequestUserAuthorization yourself. Enabled
    Audio Codec Default option means trying to use all available codecs for negotiating other peers. Default
    Loopback The sending audio is also played on sender side. Disabled
    Bitrate (kbits/sec) The bitrate of the audio streaming.
    Min The minimum value of the bitrate. 0
    Max The maximum value of the bitrate. 1000

    AudioStreamReceiver component reference

    The components receive audio track stream and rendering to AudioSource.

    AudioStreamReceiver inspector

    Properties

    Parameter Description Default
    Target Audio Source AudioSource instance for sending audio None
    Audio Codec Default option means trying to use all available codecs for negotiating other peers. Default
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)