Build

Raspberry Pi Text-to-Speech w/ Windows 10 SpeechSynthesizer

1 min read Joe Hanson on Jul 10, 2015
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

How to build a Raspberry Pi text-to-speech app where text is entered remotely and played back as audio using Windows 10 SpeechSynthesizer.

We absolutely love when developers harness the real-time capabilities of the PubNub API and extend it to the Internet of Things. With the affordability, capabilities, and flexibility of new embedded boards, the sky’s the limit for IoT hobbyists and developers for any skill level. So when a great project comes along, we want our readers to know about it.

raspberry pi text to voice

Today’s featured project is from Krishnaraj Varma, who built a text-to-speech application using Raspberry Pi and Windows 10 audio output (part of the Windows 10 IoT release earlier this year).  The application enables a user to type in text, sends the command to a Raspberry Pi 2 Model B, then uses SpeechSynthesizer to speak the text.

Even better, Varma expanded his demo by integrating PubNub to allow remote users to us the application. Streaming the text over the PubNub Data Stream Network, users can send commands in real time from remote locations. Using the PubNub JavaScript SDK, the application keeps an open socket connection and listens for incoming PubNub messages on a channel.

You can see Varma’s full code repository here, including a schematic and all the code you need to build it yourself.

See it in action below:

More from PubNub

Comparing Game Engines: Unity vs Unreal vs the Rest
Real-Time Gaming BlogSep 21, 20225 min read

Comparing Game Engines: Unity vs Unreal vs the Rest

Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...

PubNub Staff

PubNub Staff

Python Socket Programming: Client, Server and Peer Libraries
BuildSep 21, 20226 min read

Python Socket Programming: Client, Server and Peer Libraries

Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...

PubNub Staff

PubNub Staff

Node.js WebSocket Programming Examples
BuildSep 21, 20226 min read

Node.js WebSocket Programming Examples

An overview and examples of basic socket and WebSocket programming with Node.js.

PubNub Staff

PubNub Staff