15. An electronic device, comprising: one or more processors; and memory storing one or more programs, the one or more programs including instructions, which when executed by the one or more processors, cause the one or more processors to: detect an error in a speech based interaction with a digital assistant based on detecting a user input other than the speech based interaction; in response to detecting the error, receive a speech input from a user, the speech input including a pronunciation of one or more words; determine, based on the pronunciation of the one or more words, a first set of phonemes from a speech recognition phonetic alphabet and a second set of phonemes from a speech synthesis phonetic alphabet; update one or more databases to include the first set of phonemes and the second set of phonemes in association with a text string corresponding to the one or more words; and perform speech recognition or speech synthesis using the updated one or more databases.
15. An electronic device, comprising: one or more processors; and memory storing one or more programs, the one or more programs including instructions, which when executed by the one or more processors, cause the one or more processors to: detect an error in a speech based interaction with a digital assistant based on detecting a user input other than the speech based interaction; in response to detecting the error, receive a speech input from a user, the speech input including a pronunciation of one or more words; determine, based on the pronunciation of the one or more words, a first set of phonemes from a speech recognition phonetic alphabet and a second set of phonemes from a speech synthesis phonetic alphabet; update one or more databases to include the first set of phonemes and the second set of phonemes in association with a text string corresponding to the one or more words; and perform speech recognition or speech synthesis using the updated one or more databases. 16. The device of claim 15 , wherein the one or more words were received in a prior speech input provided by the user, and wherein the error is an error in speech recognition of the one or more words.