While the princess doesn't actually spew out frogs and snakes, the story does play on a similar theme of a curse and the transformative power of love. In the story, the princess, due to a broken promise, is cursed by a frog to speak only in croaking, hissing, or other animal noises.
This leads to a misunderstanding where she seems to be speaking in strange, frightening sounds, though in reality, it's just the curse manifesting. It's ultimately the act of true love that breaks the curse and allows her to speak normally again.