2021-10-17 01:23:31 +02:00
|
|
|
namespace Content.Server.Speech.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StutteringAccentComponent : Component
|
2021-10-17 01:23:31 +02:00
|
|
|
{
|
2023-10-21 22:09:54 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Percentage chance that a stutter will occur if it matches.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("matchRandomProb")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MatchRandomProb = 0.8f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Percentage chance that a stutter occurs f-f-f-f-four times.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("fourRandomProb")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float FourRandomProb = 0.1f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Percentage chance that a stutter occurs t-t-t-three times.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("threeRandomProb")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float ThreeRandomProb = 0.2f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Percentage chance that a stutter cut off.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("cutRandomProb")]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float CutRandomProb = 0.05f;
|
2021-10-17 01:23:31 +02:00
|
|
|
}
|
|
|
|
|
}
|