AudioStream

AudioStream[audio]

creates a new AudioStream object from audio.

AudioStream[id]

is an object that represents a unique audio stream.

Details and Options

  • The serial number id is unique across all streams.
  • AudioStream[audio] returns an AudioStream object, without starting the playback.
  • Use AudioPlay[audio] to create and start playing an audio stream.
  • The following options can be specified:
  • AudioOutputDeviceInheritedaudio output device to use for playback
    SoundVolumeInheritedsound volume
  • A list of available properties can be obtained using astream["Properties"].
  • Some properties of the playback stream include:
  • "AudioOutputDevice"audio output device to use for playback
    "BufferSize"number of samples in each buffer
    "Position"position of the playback given as a time Quantity
    "SoundVolume"sound volume
    "State"state including "Playing", "Paused" or "Stopped"
  • It is possible to set values of properties with astream["prop"]=val.

Examples

open allclose all

Basic Examples  (1)

Create an AudioStream without starting the playback:

In[1]:=
Click for copyable input
Out[2]=

Play the AudioStream:

In[3]:=
Click for copyable input
Out[3]=

Scope  (5)

Options  (2)

Neat Examples  (1)

See Also

Audio  AudioPlay  AudioStop  AudioPause  AudioStreams

Introduced in 2017
(11.2)