<commit_before># Unity 3D Mic Control (C#)
> This is heavily based on the scripts provided in the [Mic Control](https://www.assetstore.unity3d.com/en/#!/content/12518) asset package located in the Asset Store. I've basically just converted the latest Javascript version to C#.

## Original source code (java) created by <NAME>.

**For the WebPlayer build you need to add this code <http://docs.unity3d.com/412/Documentation/ScriptReference/Application.RequestUserAuthorization.html?from=UserAuthorization>**

This is not included because it troubles the normal machines builds.

[Chapter 1](#Chapter-1): User accessible variables and functions
[Chapter 2](#Chapter-2): Explanation of the script variables and functions (how the script works).
[Chapter 3](#Chapter-3): Examples.
[Chapter 4](#Chapter-4): WebPLayer setup.

Newest video tutorial: <https:https:https://www.youtube.com/watch?v=pD29teWi2fg>
Webplayer tutorial: <https://www.youtube.com/watch?v=euL41orNfPM&feature=youtu.be>
Older video tutorial: <http://www.youtube.com/watch?v=VqHYP7iVG3E&feature=youtu.be>

### Functionality Overview

1. This script allows you to call information from a selected microphone.
2. The script can detect every microphone attached.
3. There is a GUI function to select the microphone ingame.
4. The script finds the volume of sound going through ONLY the microphone.
5. The volume of the AudioSource directly affects the loudness variable (can be set in script.
6. If only 1 microphone is connected, that device is made default.
7. Can call the input loudness from outside the script.
8. Create a GUI from any script with a build in gui function.<commit_msg>Cleaned up the README<commit_after># Unity 3D Mic Control (C#)
> This is heavily based on the scripts provided in the [Mic Control](https://www.assetstore.unity3d.com/en/#!/content/12518) asset package located in the Asset Store. I've basically just converted the latest Javascript version to C#.

## Original source code (java) created by <NAME>.

**For the WebPlayer build you need to add this code <http://docs.unity3d.com/412/Documentation/ScriptReference/Application.RequestUserAuthorization.html?from=UserAuthorization>**

This is not included because it troubles the normal machines builds.

- [Chapter 1](#Chapter-1): User accessible variables and functions
- [Chapter 2](#Chapter-2): Explanation of the script variables and functions (how the script works).
- [Chapter 3](#Chapter-3): Examples.
- [Chapter 4](#Chapter-4): WebPLayer setup.

Newest video tutorial: <https:https:https://www.youtube.com/watch?v=pD29teWi2fg>
Webplayer tutorial: <https://www.youtube.com/watch?v=euL41orNfPM&feature=youtu.be>
Older video tutorial: <http://www.youtube.com/watch?v=VqHYP7iVG3E&feature=youtu.be>

### Functionality Overview

1. This script allows you to call information from a selected microphone.
2. The script can detect every microphone attached.
3. There is a GUI function to select the microphone ingame.
4. The script finds the volume of sound going through ONLY the microphone.
5. The volume of the AudioSource directly affects the loudness variable (can be set in script.
6. If only 1 microphone is connected, that device is made default.
7. Can call the input loudness from outside the script.
8. Create a GUI from any script with a build in gui function.
{'fraction_non_alphanumeric': 0.09167671893848009, 'fraction_numerical': 0.021109770808202654, 'mean_word_length': 4.987364620938628, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '275010', 'n_tokens_mistral': 991, 'n_tokens_neox': 914, 'n_words': 400}