Skip to content

response none when prosody has no text #18

@markmacau

Description

@markmacau

Thanks for great tool. I found that ssml-builder return null when no text such as '' provided for prosody.

This returns ssml properly:
speech.prosody({rate: "110%"},"abc")

This returns null:
speech.prosody({rate: "110%"},"")

Because I use ssml-builder inside for-loop, above situation happened. I solved my problem to check value existence before fire ssml-builder.

I think it is better if there is some error message in such case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions