Skip to content

Instantly share code, notes, and snippets.

View vigneshv59's full-sized avatar

Vignesh Varadarajan vigneshv59

View GitHub Profile
import asyncio
import websockets
import json
import base64
import uuid
import time
async def tts_websocket():
uri = "ws://localhost:8080/api/tts/websocket"
generation_id = f"gen_{uuid.uuid4()}"
syntax = "proto3";
package sesameservice;
service SesameService {
rpc RunConversation(stream ConversationMessage) returns (stream SpeechResult) {}
}
enum ConversationMessageType {
CONFIG = 0;
TEXT = 1;
type AggregateStats {
totalCallTimeSecs: Int!
totalDialTimeSecs: Int!
numDials: Int!
numConnects: Int!
numMeetings: Int!
numNoAnswer: Int!
numPatched: Int!
numCancels: Int!
}
export enum SystemResultType {
Busy = 'BUSY',
Cancelled = 'CANCELLED',
DialTreeFound = 'DIAL_TREE_FOUND',
DncSkipped = 'DNC_SKIPPED',
Failed = 'FAILED',
NoAnswer = 'NO_ANSWER',
NumberSkipped = 'NUMBER_SKIPPED',
UserHangup = 'USER_HANGUP',
ProspectHangup = 'PROSPECT_HANGUP',
@vigneshv59
vigneshv59 / Makefile
Created October 28, 2019 04:58
This is not a jpeg.
###############################################################################
# CS/CNS 171 Fall 2015
#
# This is a template Makefile for OpenGL programs. Edit it however you find
# convenient.
#
# The current version of this file should compile OpenGL programs just fine on
# Debian-based Linux operating systems.
#
# If you run Mac OS or other distributions of Linux, then you may have to
#include <Keypad.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};