Skip to content

Skill to show how to parse a weather intent and respond with a TTS.

License

Notifications You must be signed in to change notification settings

snipsco/snips-skill-weather-tts

Repository files navigation

Snips Weather TTS action

MIT License

This is a Snips weather action written in Python and is compatible with snips-skill-server. It is meant to be used as a demo in the snips-platform-demo package. This action subscribes to all intents and only parses the weather intents. The result is then spoken through TTS.

This action won't give you a weather result, check snips-skill-owm for this.

Skill Setup

Prerequisites

You'll need to add the Weather english skill in your assistant. It's available on Snips' console

SAM (preferred)

To install the action on your device, you can use Sam

sam install action -g https://github.com/snipsco/snips-skill-weather-tts.git

Manually

Copy it manually to the device to the folder /var/lib/snips/skills/ You'll need snips-skill-server installed on the pi

sudo apt-get install snips-skill-server

Stop snips-skill-server & generate the virtual environment

sudo systemctl stop snips-skill-server
cd /var/lib/snips/skills/snips-skill-weather-tts/
sh setup.sh
sudo systemctl start snips-skill-server

Setup with APT

The APT package contains only the weather assistant. The assistant will be placed in /usr/share/snips/assistant.

sudo apt-get install snips-platform-demo

The skill need to be installed manually.

Full demo installation with SAM

sam install demo install the assistants and this skill on your device.

How to trigger

Hey Snips

What will be the weather in London in two days?

Logs

Show snips-skill-server logs with sam:

sam service log snips-skill-server

Or on the device:

journalctl -f -u snips-skill-server

Check general platform logs:

sam watch

Or on the device:

snips-watch

About

Skill to show how to parse a weather intent and respond with a TTS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published