public SFXController( Config.BotConfiguration botConfig, ISoundEffectSystem soundEffectSystem, IAudioPlayer audioPlayer) { this.botConfig = botConfig; this.soundEffectSystem = soundEffectSystem; this.audioPlayer = audioPlayer; }
public MidiKeyboardHandler( Config.BotConfiguration botConfig, ICommunication communication, ISoundEffectSystem soundEffectsSystem) { this.botConfig = botConfig; this.communication = communication; this.soundEffectsSystem = soundEffectsSystem; }
public TTTASRenderer( ICommunication communication, ISoundEffectSystem soundEffectSystem, ITTTASProvider tttasProvider, TTTASConfiguration tttasConfig) { this.communication = communication; this.soundEffectSystem = soundEffectSystem; this.tttasProvider = tttasProvider; this.tttasConfig = tttasConfig; }
public TTSRenderer( ICommunication communication, ISoundEffectSystem soundEffectSystem) { this.communication = communication; this.soundEffectSystem = soundEffectSystem; // // Prepare Google TTS // TextToSpeechClientBuilder builder = new TextToSpeechClientBuilder(); string googleCredentialsPath = BGC.IO.DataManagement.PathForDataFile("Config", "googleCloudCredentials.json"); if (!File.Exists(googleCredentialsPath)) { throw new FileNotFoundException($"Could not find credentials for Google TTS at {googleCredentialsPath}"); } builder.CredentialsPath = googleCredentialsPath; googleClient = builder.Build(); // // Prepare Amazon TTS // string awsCredentialsPath = BGC.IO.DataManagement.PathForDataFile("Config", "awsPollyCredentials.json"); if (!File.Exists(awsCredentialsPath)) { throw new FileNotFoundException($"Could not find credentials for AWS Polly at {awsCredentialsPath}"); } AWSPollyCredentials awsPolyCredentials = JsonSerializer.Deserialize <AWSPollyCredentials>(File.ReadAllText(awsCredentialsPath)); Amazon.Runtime.BasicAWSCredentials awsCredentials = new Amazon.Runtime.BasicAWSCredentials( awsPolyCredentials.AccessKey, awsPolyCredentials.SecretKey); amazonClient = new AmazonPollyClient(awsCredentials, Amazon.RegionEndpoint.USWest1); }
public ReverbEffectProvider( ISoundEffectSystem soundEffectSystem) { this.soundEffectSystem = soundEffectSystem; }