Class AudioPrice
Represents per-second audio pricing, used for text-to-speech and voice change models.
Assembly: Glitch9.AIDevKit.dll
Syntax
[Serializable]
public class AudioPrice : ModelPrice
Constructors
|
Edit this page
View Source
AudioPrice()
Declaration
|
Edit this page
View Source
AudioPrice(double, bool)
Declaration
public AudioPrice(double cost, bool isEstimated = false)
Parameters
| Type |
Name |
Description |
| double |
cost |
|
| bool |
isEstimated |
|
Fields
|
Edit this page
View Source
isEstimated
Whether this cost is an estimate rather than an exact provider-published rate.
Declaration
[SerializeField]
[JsonProperty("isEstimated")]
public bool isEstimated
Field Value
Methods
|
Edit this page
View Source
PerMinute(double, bool)
Creates an AudioPrice from a per-minute rate, automatically converting to per-second.
Declaration
public static AudioPrice PerMinute(double cost, bool isEstimated = false)
Parameters
| Type |
Name |
Description |
| double |
cost |
|
| bool |
isEstimated |
|
Returns
Extension Methods