Exemplo n.º 1
0
 public static void PlayMp3(string filePath, bool ispass = false)
 {
     try
     {
         filePath.ToSaveLog("语音播报.");
         var path = IrAdvanced.GetAbsolutePath(filePath);
         if (!path.IsNullOrEmpty())
         {
             Player.Open(new Uri(path, UriKind.Relative));
             Player.Play();
         }
     }
     catch (Exception ex)
     {
         ex.ToSaveLog("PlayMp3:");
     }
 }