# AudioTextToSpeech(ロブロックス クラス) > Plays text as speech audio. - URL:https://roblox.minecraft-okinawa.com/reference/classes/AudioTextToSpeech/ - 公式:https://create.roblox.com/docs/reference/engine/classes/AudioTextToSpeech - 受け継いでいるクラス:Instance ## プロパティ - `AudioTextToSpeech.AutoLocalize: boolean`:Controls whether AudioTextToSpeech.Text is automatically translated into the player's language and routed to an appropriate voice. - `AudioTextToSpeech.IsLoaded: boolean`:Denotes whether the AudioTextToSpeech object is loaded, buffered, and ready to play. - `AudioTextToSpeech.IsPlaying: boolean`:Denotes whether the AudioTextToSpeech object is currently playing. - `AudioTextToSpeech.Looping: boolean`:Controls whether the AudioTextToSpeech object loops. - `AudioTextToSpeech.Pitch: float`:Controls the pitch of the generated speech audio, which will be independent of its speed. - `AudioTextToSpeech.PlaybackSpeed: float`:Controls how quickly the speech audio will be played, which controls its pitch. - `AudioTextToSpeech.Speed: float`:Controls the speed of the generated speech audio, which will be independent of its pitch. - `AudioTextToSpeech.Text: string`:The text to be converted into speech audio by AudioTextToSpeech. - `AudioTextToSpeech.TimeLength: double`:Denotes the length of the generated speech audio. - `AudioTextToSpeech.TimePosition: double`:Tracks the current position of the playhead within the generated speech audio. - `AudioTextToSpeech.VoiceId: string`:The voice style to be used by AudioTextToSpeech. - `AudioTextToSpeech.Volume: float`:Controls how loudly the generated speech audio will be played. ## メソッド - `AudioTextToSpeech:GetConnectedWires(pin: string): List`:Returns an array of Class.Wire|Wires that are connected to the specified pin. - `AudioTextToSpeech:GetInputPins(): Array`:Gets the list of pins that a Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property. - `AudioTextToSpeech:GetOutputPins(): Array`:Gets the list of pins that a Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property. - `AudioTextToSpeech:GetWaveformAsync(timeRange: NumberRange, samples: int): Array`:Returns a sampling of the waveform data for the generated audio. - `AudioTextToSpeech:LoadAsync(): AssetFetchStatus`:Generates speech audio. - `AudioTextToSpeech:Pause(): ()`:Pauses the AudioTextToSpeech object wherever its Class.AudioTextToSpeech.TimePosition|TimePosition is. - `AudioTextToSpeech:Play(): ()`:Plays the AudioTextToSpeech from wherever its Class.AudioTextToSpeech.TimePosition|TimePosition is. - `AudioTextToSpeech:Unload(): ()`:Unload the generated speech audio. ## イベント - `AudioTextToSpeech.Ended()`:Fires when the AudioTextToSpeech object has completed playback and paused. - `AudioTextToSpeech.Looped()`:Fires when the AudioTextToSpeech object loops. - `AudioTextToSpeech.WiringChanged(connected: boolean, pin: string, wire: Wire, instance: Instance)`:Fires when another instance is connected to or disconnected from the AudioTextToSpeech via a Wire. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)