共用方式為


GuidanceNavigator.SetGuidanceVoice(Int32, String) 方法

定義

設定用於音訊通知的語音。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則對此 API 的呼叫會在執行時間失敗。 如需 Windows.Services.Maps.Guidance 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

public:
 virtual void SetGuidanceVoice(int voiceId, Platform::String ^ voiceFolder) = SetGuidanceVoice;
void SetGuidanceVoice(int const& voiceId, winrt::hstring const& voiceFolder);
public void SetGuidanceVoice(int voiceId, string voiceFolder);
function setGuidanceVoice(voiceId, voiceFolder)
Public Sub SetGuidanceVoice (voiceId As Integer, voiceFolder As String)

參數

voiceId
Int32

int

語音識別碼。

voiceFolder
String

Platform::String

winrt::hstring

指定語音的資料夾路徑。

適用於