class_audiostreammicrophone.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioStreamMicrophone.xml.
  6. .. _class_AudioStreamMicrophone:
  7. AudioStreamMicrophone
  8. =====================
  9. **Inherits:** :ref:`AudioStream<class_AudioStream>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Plays real-time audio input data.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. When used directly in an :ref:`AudioStreamPlayer<class_AudioStreamPlayer>` node, **AudioStreamMicrophone** plays back microphone input in real-time. This can be used in conjunction with :ref:`AudioEffectCapture<class_AudioEffectCapture>` to process the data or save it.
  15. \ **Note:** :ref:`ProjectSettings.audio/driver/enable_input<class_ProjectSettings_property_audio/driver/enable_input>` must be ``true`` for audio input to work. See also that setting's description for caveats related to permissions and operating system privacy settings.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Recording with microphone <../tutorials/audio/recording_with_microphone>`
  20. - `Audio Mic Record Demo <https://github.com/godotengine/godot-demo-projects/tree/master/audio/mic_record>`__
  21. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  22. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  23. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  24. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  25. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  26. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  27. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  28. .. |void| replace:: :abbr:`void (No return value.)`