# Make your Pi speak with Google Wavenet voice - node-red-contrib-wavenet

**URL:** <https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914>\
**Category:** Share Your Nodes\
**Created:** [13 March 2019 08:27 UTC](https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914 "2019-03-13T08:27:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![balsimpson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/balsimpson/32/4534_2.png) [@balsimpson](https://discourse.nodered.org/u/balsimpson)\
**Post date:** [13 March 2019 08:27 UTC](https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914/1 "2019-03-13T08:27:18Z")

</div>

**Make your Pi speak with Google Wavenet voice.**

Wavenet voice represents a new way of creating synthetic speech, using a **WaveNet** model, the same technology used to produce speech for Google Assistant, Google Search, and Google Translate.

Takes a `string` as an input. Returns a `base64` encoded array buffer. Attach a file node to save it as an MP3 on your disk.

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d54d8d8fde515fe4a8d5f1e41dd9151c9f436132.png) ](https://i.imgur.com/WyF9hBt.png)

Get it [here](https://www.npmjs.com/package/node-red-contrib-wavenet).  
You'll need an API key that you can get at this link - [https://cloud.google.com/text-to-speech/](https://cloud.google.com/text-to-speech/)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 March 2019 09:31 UTC](https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914/2 "2019-03-13T09:31:51Z")

</div>

Don't you think you should mention in the README that you need a Google speech API key?

---

<div class="post-metadata">

**Author:** ![balsimpson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/balsimpson/32/4534_2.png) [@balsimpson](https://discourse.nodered.org/u/balsimpson)\
**Post date:** [13 March 2019 13:58 UTC](https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914/3 "2019-03-13T13:58:03Z")

</div>

Will do. Updated the post .

---

<div class="post-metadata">

**Author:** ![cru8602](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cru8602/32/19295_2.png) [@cru8602](https://discourse.nodered.org/u/cru8602)\
**Post date:** [3 April 2020 07:34 UTC](https://discourse.nodered.org/t/make-your-pi-speak-with-google-wavenet-voice-node-red-contrib-wavenet/8914/4 "2020-04-03T07:34:40Z")

</div>

Hi,

I try to use the wavenet node but I'm not able to creat a playable MP3 File, but I can't figure out what I'm doing wrong.  
The API Key is correct since the Wavenet Node outputs an buffer array and the file node creats the file in question, but none player is able to play the new created file. @balsimpson can you, or someone else help me find my mistake?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c28165badb4c3baec7c04ec41c57ad45244b8589.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/2624abb1b55243af802f5fb96ef3d7124716df92.png)

found it... encoding in the file node has to be default and not base64
