SSML output with custom language












2














I'm building a simple alexa skill.



I'm trying to output a text message (in italian) with some english word in it, but i don't found how let it works..



1 try



return github.getFollowersCount(search)
.then((count) => {
const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
return handlerInput.responseBuilder
.speak(speechOutput);
})


2 try



return {
ssml: `<speak>Hai ${count} <lang xml:lang="en-GB">follower</lang></speak>`,
type: 'SSML',
};


3 try



const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
return handlerInput.responseBuilder
.speak(escaleTag(speechOutput));


I don't find any docs or way to make it works.
Also ssml-builder seems doesn't support the lang tag..



Do you have any suggestions? What the handler function should return?



Thank you










share|improve this question



























    2














    I'm building a simple alexa skill.



    I'm trying to output a text message (in italian) with some english word in it, but i don't found how let it works..



    1 try



    return github.getFollowersCount(search)
    .then((count) => {
    const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
    return handlerInput.responseBuilder
    .speak(speechOutput);
    })


    2 try



    return {
    ssml: `<speak>Hai ${count} <lang xml:lang="en-GB">follower</lang></speak>`,
    type: 'SSML',
    };


    3 try



    const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
    return handlerInput.responseBuilder
    .speak(escaleTag(speechOutput));


    I don't find any docs or way to make it works.
    Also ssml-builder seems doesn't support the lang tag..



    Do you have any suggestions? What the handler function should return?



    Thank you










    share|improve this question

























      2












      2








      2







      I'm building a simple alexa skill.



      I'm trying to output a text message (in italian) with some english word in it, but i don't found how let it works..



      1 try



      return github.getFollowersCount(search)
      .then((count) => {
      const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
      return handlerInput.responseBuilder
      .speak(speechOutput);
      })


      2 try



      return {
      ssml: `<speak>Hai ${count} <lang xml:lang="en-GB">follower</lang></speak>`,
      type: 'SSML',
      };


      3 try



      const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
      return handlerInput.responseBuilder
      .speak(escaleTag(speechOutput));


      I don't find any docs or way to make it works.
      Also ssml-builder seems doesn't support the lang tag..



      Do you have any suggestions? What the handler function should return?



      Thank you










      share|improve this question













      I'm building a simple alexa skill.



      I'm trying to output a text message (in italian) with some english word in it, but i don't found how let it works..



      1 try



      return github.getFollowersCount(search)
      .then((count) => {
      const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
      return handlerInput.responseBuilder
      .speak(speechOutput);
      })


      2 try



      return {
      ssml: `<speak>Hai ${count} <lang xml:lang="en-GB">follower</lang></speak>`,
      type: 'SSML',
      };


      3 try



      const speechOutput = `${search} ha ${count} <lang xml:lang="en-GB">follower</lang>`;
      return handlerInput.responseBuilder
      .speak(escaleTag(speechOutput));


      I don't find any docs or way to make it works.
      Also ssml-builder seems doesn't support the lang tag..



      Do you have any suggestions? What the handler function should return?



      Thank you







      node.js alexa-skills-kit alexa-skill ssml






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 22:36









      Manuel Spigolon

      1,44511631




      1,44511631
























          2 Answers
          2






          active

          oldest

          votes


















          0














          That should totally work. Have you tried with <lang xml:lang="en-US"> or with another language?






          share|improve this answer





























            2














            SSML does support the lang tag, but am not sure if it'll take it with the default voice. Here is an SSML snippet that I use that seems to be working fine.



            <voice name="Brian"><lang xml:lang="en-GB">Hello there</lang>.</voice>



            According to the official documentation, the following voices are supported for their respective languages:



            English, American (en-US): Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli



            English, Australian (en-AU): Nicole, Russell



            English, British (en-GB): Amy, Brian, Emma



            English, Indian (en-IN): Aditi, Raveena



            German (de-DE): Hans, Marlene, Vicki



            Spanish, Castilian (es-es): Conchita, Enrique



            Italian (it-IT): Carla, Giorgio



            Japanese (ja-JP): Mizuki, Takumi



            French (fr-FR): Celine, Lea, Mathieu






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402634%2fssml-output-with-custom-language%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              That should totally work. Have you tried with <lang xml:lang="en-US"> or with another language?






              share|improve this answer


























                0














                That should totally work. Have you tried with <lang xml:lang="en-US"> or with another language?






                share|improve this answer
























                  0












                  0








                  0






                  That should totally work. Have you tried with <lang xml:lang="en-US"> or with another language?






                  share|improve this answer












                  That should totally work. Have you tried with <lang xml:lang="en-US"> or with another language?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 11:06









                  niccord

                  184




                  184

























                      2














                      SSML does support the lang tag, but am not sure if it'll take it with the default voice. Here is an SSML snippet that I use that seems to be working fine.



                      <voice name="Brian"><lang xml:lang="en-GB">Hello there</lang>.</voice>



                      According to the official documentation, the following voices are supported for their respective languages:



                      English, American (en-US): Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli



                      English, Australian (en-AU): Nicole, Russell



                      English, British (en-GB): Amy, Brian, Emma



                      English, Indian (en-IN): Aditi, Raveena



                      German (de-DE): Hans, Marlene, Vicki



                      Spanish, Castilian (es-es): Conchita, Enrique



                      Italian (it-IT): Carla, Giorgio



                      Japanese (ja-JP): Mizuki, Takumi



                      French (fr-FR): Celine, Lea, Mathieu






                      share|improve this answer


























                        2














                        SSML does support the lang tag, but am not sure if it'll take it with the default voice. Here is an SSML snippet that I use that seems to be working fine.



                        <voice name="Brian"><lang xml:lang="en-GB">Hello there</lang>.</voice>



                        According to the official documentation, the following voices are supported for their respective languages:



                        English, American (en-US): Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli



                        English, Australian (en-AU): Nicole, Russell



                        English, British (en-GB): Amy, Brian, Emma



                        English, Indian (en-IN): Aditi, Raveena



                        German (de-DE): Hans, Marlene, Vicki



                        Spanish, Castilian (es-es): Conchita, Enrique



                        Italian (it-IT): Carla, Giorgio



                        Japanese (ja-JP): Mizuki, Takumi



                        French (fr-FR): Celine, Lea, Mathieu






                        share|improve this answer
























                          2












                          2








                          2






                          SSML does support the lang tag, but am not sure if it'll take it with the default voice. Here is an SSML snippet that I use that seems to be working fine.



                          <voice name="Brian"><lang xml:lang="en-GB">Hello there</lang>.</voice>



                          According to the official documentation, the following voices are supported for their respective languages:



                          English, American (en-US): Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli



                          English, Australian (en-AU): Nicole, Russell



                          English, British (en-GB): Amy, Brian, Emma



                          English, Indian (en-IN): Aditi, Raveena



                          German (de-DE): Hans, Marlene, Vicki



                          Spanish, Castilian (es-es): Conchita, Enrique



                          Italian (it-IT): Carla, Giorgio



                          Japanese (ja-JP): Mizuki, Takumi



                          French (fr-FR): Celine, Lea, Mathieu






                          share|improve this answer












                          SSML does support the lang tag, but am not sure if it'll take it with the default voice. Here is an SSML snippet that I use that seems to be working fine.



                          <voice name="Brian"><lang xml:lang="en-GB">Hello there</lang>.</voice>



                          According to the official documentation, the following voices are supported for their respective languages:



                          English, American (en-US): Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli



                          English, Australian (en-AU): Nicole, Russell



                          English, British (en-GB): Amy, Brian, Emma



                          English, Indian (en-IN): Aditi, Raveena



                          German (de-DE): Hans, Marlene, Vicki



                          Spanish, Castilian (es-es): Conchita, Enrique



                          Italian (it-IT): Carla, Giorgio



                          Japanese (ja-JP): Mizuki, Takumi



                          French (fr-FR): Celine, Lea, Mathieu







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 25 '18 at 8:20









                          bal simpson

                          916




                          916






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402634%2fssml-output-with-custom-language%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Costa Masnaga

                              Fotorealismo

                              Sidney Franklin