mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
* Add speech rate setting * Add volume slider * New speech manager skeleton * User API key from resx * Implement voice list retrieve via new api * Rewrite to use ObAPI, remove all dependancies * Use volume setting * Clean up using statements * Volume and timing adjustments * Lookup rate value * Use numeric rates for tighter spread * Manage plugin data folder via core interface * Add check that nullable settings are not null. * Get file size before it's deleted. * Improve old settings migration. * Ignore cache sizes below 1MB * Re-index orphaned files in cache, purge legacy wav files. * Call top level error logging for native voice exception. * Async title and detail requests to remove pause * Remove NetCoreAudio use of temp files. * Remove orphan using.
52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using Observatory.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Observatory.Herald
|
|
{
|
|
public class HeraldSettings
|
|
{
|
|
[SettingDisplayName("API Key Override: ")]
|
|
public string AzureAPIKeyOverride { get; set; }
|
|
|
|
[SettingDisplayName("Voice")]
|
|
[SettingBackingValue("SelectedVoice")]
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public Dictionary<string, object> Voices {get; internal set;}
|
|
|
|
[SettingIgnore]
|
|
public string SelectedVoice { get; set; }
|
|
|
|
[SettingBackingValue("SelectedRate")]
|
|
public Dictionary<string, object> Rate
|
|
{ get => new Dictionary<string, object>
|
|
{
|
|
{"Slowest", "0.5"},
|
|
{"Slower", "0.75"},
|
|
{"Default", "1.0"},
|
|
{"Faster", "1.25"},
|
|
{"Fastest", "1.5"}
|
|
};
|
|
}
|
|
|
|
[SettingIgnore]
|
|
public string SelectedRate { get; set; }
|
|
|
|
[SettingDisplayName("Volume")]
|
|
[SettingNumericUseSlider, SettingNumericBounds(0,100,1)]
|
|
public int Volume { get; set;}
|
|
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public Action Test { get; internal set; }
|
|
|
|
[SettingDisplayName("Enabled")]
|
|
public bool Enabled { get; set; }
|
|
|
|
[SettingIgnore]
|
|
public string ApiEndpoint { get; set; }
|
|
|
|
[SettingDisplayName("Cache Size (MB): ")]
|
|
public int CacheSize { get; set; }
|
|
}
|
|
}
|