# p5.Speech with Microphone Input

**URL:** <https://discourse.processing.org/t/p5-speech-with-microphone-input/17725>\
**Category:** Libraries\
**Created:** [February 11, 2020, 11:36am UTC](https://discourse.processing.org/t/p5-speech-with-microphone-input/17725 "2020-02-11T11:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yehonatan.cohen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yehonatan.cohen/32/8053_2.png) [@yehonatan.cohen](https://discourse.processing.org/u/yehonatan.cohen)\
**Post date:** [February 11, 2020, 11:36am UTC](https://discourse.processing.org/t/p5-speech-with-microphone-input/17725/1 "2020-02-11T11:36:01Z")

</div>

Hey,  
So I’m trying to make the SpeechRec work with the AudioIn, to adjust the font size according to the volume level.

But for some reason I don’t get any data from the AudioIn, I don’t see anything on the console.

I’m only a beginner, so can you please tell what I’m missing?

Thank you!

```auto
var mic;

function setup() {
	mic = new p5.AudioIn();
	mic.start();
	let lang = navigator.language || 'en-US';
	let SpeechRec = new p5.SpeechRec(lang, gotSpeech);

	let continuous = true;
	let interim = true;
	SpeechRec.start(continuous, interim);

function gotSpeech() {
		var vol = mic.getLevel();
		console.log(vol);

		if (SpeechRec.resultValue) {
			createP(SpeechRec.resultString.fontsize(vol+200));
		}
	}

}
```
