This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package sesameservice; | |
service SesameService { | |
rpc RunConversation(stream ConversationMessage) returns (stream SpeechResult) {} | |
} | |
enum ConversationMessageType { | |
CONFIG = 0; | |
TEXT = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type AggregateStats { | |
totalCallTimeSecs: Int! | |
totalDialTimeSecs: Int! | |
numDials: Int! | |
numConnects: Int! | |
numMeetings: Int! | |
numNoAnswer: Int! | |
numPatched: Int! | |
numCancels: Int! | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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'} | |
}; |