Commit c6fc059a by Kunj Gupta

Fixed - Mobile app should stop pronouncing the sound asterisk

.
parent 4032bad2
...@@ -47,7 +47,8 @@ public class Speaker implements TextToSpeech.OnInitListener { ...@@ -47,7 +47,8 @@ public class Speaker implements TextToSpeech.OnInitListener {
public void speak(String text, String utteranceId) { public void speak(String text, String utteranceId) {
//remove all special characters. //remove all special characters.
String speakText = text.replaceAll("--*", " "); String speakText = text.replaceAll("--*", " ");//Replace "-" with space.
speakText = speakText.replaceAll("\\*", "");//Replace "*" with empty char.
// Speak only if the TTS is ready // Speak only if the TTS is ready
// and the user has allowed speech // and the user has allowed speech
if (ready && allowed) { if (ready && allowed) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment