-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Plans to introduce support for SSML? #670
Comments
I second this. I also have a few recommendations of my own and hacks that I have thought of that I would like to present on top of this if anybody wants to implement.
# perhaps we can have alias declaration in the beginning of the string.
# We can't use double quotes in the dictionary within the string
inputstring = " <alias>{'W3C':'World Wide Web Consortium', 'W3': 'World Wide Web', 'ISO': 'International standards organisation'}</alias> The W3C is the main ISO for the W3C. Founded in 1994 and currently led by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in the development of standards for the W3."
#Slicing the string to obtain the dict
aliasdict = eval(inputstring[inputstring.index("<alias>")+len("<alias")+1:inputstring.index("</alias>")])
# SAME AS:
# Substring1 = "<alias>"
# Substring2 = "</alias>"
# Index1 = inputstring.index(Substring1)
# Index2 = inputstring.index(Substring2)
# aliasdict = eval(inputstring[Index1+len(Substring1):Index2])
# get rid of the dictionary in the input string
inputstring = inputstring[inputstring.index("</alias>")+len("</alias>")+1:]
for i in aliasdict.keys():
inputstring = inputstring.replace(i,aliasdict[i])
print(inputstring)
# perhaps a much better and easier way to do this would be take a dictionary as a parameter for the input text post-processing function Edit it and chuck this stuff into a function and you're (hopefully) good to go.
These are the ones that I can think of as of now |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels. |
See #752 for progress with SSML. |
Do you have any plans to introduce Speech Synthesis Markup Language so that output can be customized?
The text was updated successfully, but these errors were encountered: