Hi,@Nam Nguyen. Welcome to Microsoft Q&A.
According to the test, the WPF program can successfully play the English MP3 using the following code.
<Grid>
<MediaElement x:Name="mediaElement1" Width="400" Height="200" ></MediaElement>
</Grid>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
mediaElement1.LoadedBehavior = MediaState.Manual;
mediaElement1.Source = new Uri(@"Your mp3 file address", UriKind.RelativeOrAbsolute);
mediaElement1.Play();
}
}
The prerequisite for its successful operation is that the Window system can successfully play mp3 files. You should check whether your Window system can play mp3 files correctly.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.