Dataplicity Developer Hub

Dataplicity Documentation

Here you'll find announcements for new features and comprehensive guides to help you integrate Dataplicity into your Raspberry Pi projects.

Get Started    

Make your Pi speak

Easy fun stuff to do with a terminal on Dataplicity

You can connect a Raspberry Pi to power and Wi-Fi and put it anywhere. Add some speakers and you can make it talk too.

Setting up your Pi

Plug some speakers into your Pi's blue 3.5mm socket. If you're just testing you can use headphones.

Programming from your laptop

The basic programme is quite simple.

To begin a project, first change the user.

The Dataplicity terminal logs you in as a Dataplicity user which does not have superuser access.

Type su pi to switch to the 'pi' user and then the password. By default this is raspberry, unless you've changed it.

From [email protected] / $ on your laptop, type:

sudo apt-get install espeak

eSpeak will unload and install onto your Pi. Next type:

sudo espeak "Hello"

Your Pi should say "Hello" to your audio output.

If 'Hello' is a bit dull, try:

sudo espeak "Powerful you have become, the dark side I sense in you."

If you can't hear anything

Change the output configuration in rasps-config:

sudo raspi-config

In the raspi-config panel, choose:

  1. Advanced Options
  2. Audio
  3. Force 3.5mm headphone jack
  4. Finish

Then retry the espeak command above.

Updated 6 months ago

Make your Pi speak

Easy fun stuff to do with a terminal on Dataplicity

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.