# p5.FFT with cordova

**URL:** <https://discourse.processing.org/t/p5-fft-with-cordova/27836>\
**Category:** Project Guidance\
**Created:** [February 15, 2021, 12:42pm UTC](https://discourse.processing.org/t/p5-fft-with-cordova/27836 "2021-02-15T12:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarthak\_g](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sarthak\_g](https://discourse.processing.org/u/sarthak_g)\
**Post date:** [February 15, 2021, 12:42pm UTC](https://discourse.processing.org/t/p5-fft-with-cordova/27836/1 "2021-02-15T12:42:22Z")

</div>

p5.AudioIn() does not work when build app using cordova. Therefore, I’ve used [cordova plugin](https://github.com/edimuj/app-audioinput-demo) to receive microphone audioContext. Now, I want to connect above context as input to p5.fft to visualize waveform.  
How can I achieve this?

---

<div class="post-metadata">

**Author:** ![Pr0tonX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pr0tonx/32/2590_2.png) [@Pr0tonX](https://discourse.processing.org/u/Pr0tonX)\
**Post date:** [February 15, 2021, 7:53pm UTC](https://discourse.processing.org/t/p5-fft-with-cordova/27836/2 "2021-02-15T19:53:46Z")

</div>

Hi @sarthak_g ,  
welcome to the forum !  
I never used P5 embeeded in cordova, but I suppose you can use the [setInput()](https://p5js.org/reference/#/p5.FFT/setInput) function to set your audioContext as source.
