Skip to content

Instantly share code, notes, and snippets.

View gorkemgoknar's full-sized avatar

Gorkem gorkemgoknar

View GitHub Profile
"""
Example of how to synthesize speech using the Coqui Studio API.
Streams the download/playback of the audio.
Usage:
$ COQUI_API_TOKEN="put your API token here" python coqui_api_stream.py --text "Hi there!"
To specify the voice to use, pass eg: `--voice 98d4af7d-aca0-4a70-a26e-4ca59023a248`
{
"train":[
{
"personality":[
"My name is Ethan. <<REAL PERSONALITY>> This list defines the character, you can add char related text for chat here to drive chat"
],
"utterances":[
{
"candidates":[
"A line character is not supposed to say in this chat.",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gorkemgoknar
gorkemgoknar / DistinctCount.cs
Last active March 16, 2017 06:10
Calculates distinct song play count per client (in C#) , will use input.csv as input and date 10/08/2016 (10 Aug 2016) as default if not entered.
using System.IO;
using System;
using System.Collections.Generic;
class Program {
//client Database, will contain unique song access for each client
public static List < Client > clientAccessList = new List < Client > ();
//Dictionary for key,value pair where key = Number of song accesses by a client, value = number of clients