Class Sentence
Namespace: ValveResourceFormat.ResourceTypes
Assembly: ValveResourceFormat.dll
Represents a sentence with phoneme and emphasis data for voice playback.
public class SentenceInheritance
Properties
RunTimePhonemes
Gets the phoneme tags for lip-sync.
public required PhonemeTag[] RunTimePhonemes { get; init; }Property Value
ShouldVoiceDuck
Gets a value indicating whether voice ducking should be applied.
public bool ShouldVoiceDuck { get; init; }Property Value
Methods
ToValveSentence()
Serializes the sentence to the plaintext phoneme format used by Source's resourcecompiler -extract_sentence. Placing the resulting .txt next to a source sound recompiles the phoneme data back into the vsnd.
public string ToValveSentence()Returns
Remarks
A compiled sound only stores the flat runtime phoneme stream, so the original word grouping, plaintext and emphasis samples cannot be recovered. All phonemes are emitted into a single WORD block, which the compiler flattens back to the same stream. A phoneme code is the unicode code point of its IPA symbol; the compiler keys off the numeric code, so the symbol is written purely for readability.
See Also
https://s2v.app/SchemaExplorer/cs2/soundsystem_voicecontainers/CAudioSentence

