Skip to content

Commit 079f768

Browse files
author
Florian Treml
committed
Added Rasa docs
1 parent 5c19cf7 commit 079f768

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Some examples what you can do with this:
2424

2525
* Synthesize audio tracks for Youtube tutorials
2626
* Build voice-enabled chatbot services (for example, IVR systems)
27+
* see the [Rasa Custom Voice Channel](./connectors/rasa)
2728
* Classification of audio file transcriptions
2829
* [Automated Testing](https://chatbotslife.com/testing-alexa-skills-with-avs-mocha-and-botium-f6c22549f66e) of Voice services with [Botium](https://medium.com/@floriantreml/botium-in-a-nutshell-part-1-overview-f8d0ceaf8fb4)
2930

@@ -154,6 +155,11 @@ This project is standing on the shoulders of giants.
154155

155156
## Changelog
156157

158+
### 2021-01-26
159+
160+
* Added several profiles for adding noise or other audio artifacts to your files
161+
* Added custom channel for usage with Rasa
162+
157163
### 2020-12-18
158164

159165
* Adding support for Google Text-To-Speech

connectors/rasa/Readme.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Rasa Custom Voice Channel
2+
3+
This channel is an extension of the Socket.io-Channel and will
4+
5+
* accept input as audio and convert it to text before handing it down the Rasa pipeline
6+
* convert text content received from the Rasa pipeline as response to audio and add it to the response
7+
8+
## Installation
9+
10+
Clone or download this repository.
11+
12+
> git clone https://github.com/codeforequity-at/botium-speech-processing.git
13+
14+
Make this directory available for Python loading by pointing PYTHONPATH environment variable here.
15+
16+
> export PYHTONPATH=$PYTHONPATH:<clone-dir>/connectors/rasa
17+
18+
Use the _credentials.yml_ file when launching Rasa.
19+
20+
> rasa run --credentials <clone-dir>/connectors/rasa/credentials.yml
21+
22+
Or when using it with docker-compose, first copy the _connectors_ folder to your Rasa installation, and you can use a _docker-compose.yml_ file like this one:
23+
24+
```
25+
version: '3.0'
26+
services:
27+
rasa:
28+
image: rasa/rasa:latest-full
29+
ports:
30+
- 5005:5005
31+
volumes:
32+
- ./:/app
33+
environment:
34+
PYTHONPATH: "/app/connectors/rasa:/app"
35+
RASA_DUCKLING_HTTP_URL: http://rasa-duckling:8000
36+
command: run -vv --cors "*" --credentials /app/connectors/rasa/credentials.yml --enable-api --model models/dialogue --endpoints endpoints.yml -t B0tium1234
37+
rasa-actions:
38+
build:
39+
context: .
40+
ports:
41+
- 5055:5055
42+
rasa-duckling:
43+
image: rasa/duckling
44+
ports:
45+
- 8000:8000
46+
```
47+
48+
## Testing
49+
50+
There is a simple test client based on the [Rasa Voice Interface](https://github.com/RasaHQ/rasa-voice-interface) available.
51+
52+
In the _client_ directory, change the Rasa endpoint in the _docker-compose.yml_ file, then launch the client and access the Web interface to give a chat to your Rasa chatbot.

0 commit comments

Comments
 (0)