Using Amazon Polly Text to Speech to Mimic the Intonation of a Real Speech Waveform from an Audio File












0















I want to produce very realistic sounding speech using Amazon Polly -- more realistic than the results produced by allowing Amazon Polly to generate speech audio output from normal text input. In order to do this, I want to tell Polly to do its best to exactly match a given sample of real speech audio file input that was voiced/recorded by a voice actor. In other words, I want to convert the voiced speech produced by the voice actor into a sequence of some kind of codes (eg phonemes, timing codes, etc) suitable as input to the polly api, which can then produce an audio file output that should mimic the original recorded input as closely as possible.



Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back? If not, is there some other api that would be appropriate to be used for the first step?



Why?
Using Polly to create speech the 'normal way' -- by feeding text into the polly api -- tends to produce not sufficiently natural sounding speech (though it may be the best text to speech engine currently available). The Polly API speech produced the 'normal way' does not have the correct timing/prosody. We've tried to manually convert speech word-by-word into phonemes and manually add timing information, and then feed this into the Polly API as input, but this is both very laborious, and doesn't produce a very satisfactory result. We have used this in apps. For particularly important parts of the speech, we need to get better quality. We can't use recorded audio from a voice actor, as one might in other circumstances, because then it won't match the rest of the speech, produced by the Polly API.



BTW, before you vote this post down because it doesn't include a little code snippet... consider that this is still a coding problem, just not in the form of 'help me edit my code snippet to do x' -- though a code snippet answer would be a fine form for an answer to the question if such an answer exists! This is actually a broadly important and general coding problem that potentially affects any coder needing to create realistic speech through code.



Thanks










share|improve this question























  • I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

    – Boober Bunz
    Nov 24 '18 at 2:27











  • @BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

    – gnat
    Nov 24 '18 at 18:00
















0















I want to produce very realistic sounding speech using Amazon Polly -- more realistic than the results produced by allowing Amazon Polly to generate speech audio output from normal text input. In order to do this, I want to tell Polly to do its best to exactly match a given sample of real speech audio file input that was voiced/recorded by a voice actor. In other words, I want to convert the voiced speech produced by the voice actor into a sequence of some kind of codes (eg phonemes, timing codes, etc) suitable as input to the polly api, which can then produce an audio file output that should mimic the original recorded input as closely as possible.



Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back? If not, is there some other api that would be appropriate to be used for the first step?



Why?
Using Polly to create speech the 'normal way' -- by feeding text into the polly api -- tends to produce not sufficiently natural sounding speech (though it may be the best text to speech engine currently available). The Polly API speech produced the 'normal way' does not have the correct timing/prosody. We've tried to manually convert speech word-by-word into phonemes and manually add timing information, and then feed this into the Polly API as input, but this is both very laborious, and doesn't produce a very satisfactory result. We have used this in apps. For particularly important parts of the speech, we need to get better quality. We can't use recorded audio from a voice actor, as one might in other circumstances, because then it won't match the rest of the speech, produced by the Polly API.



BTW, before you vote this post down because it doesn't include a little code snippet... consider that this is still a coding problem, just not in the form of 'help me edit my code snippet to do x' -- though a code snippet answer would be a fine form for an answer to the question if such an answer exists! This is actually a broadly important and general coding problem that potentially affects any coder needing to create realistic speech through code.



Thanks










share|improve this question























  • I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

    – Boober Bunz
    Nov 24 '18 at 2:27











  • @BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

    – gnat
    Nov 24 '18 at 18:00














0












0








0








I want to produce very realistic sounding speech using Amazon Polly -- more realistic than the results produced by allowing Amazon Polly to generate speech audio output from normal text input. In order to do this, I want to tell Polly to do its best to exactly match a given sample of real speech audio file input that was voiced/recorded by a voice actor. In other words, I want to convert the voiced speech produced by the voice actor into a sequence of some kind of codes (eg phonemes, timing codes, etc) suitable as input to the polly api, which can then produce an audio file output that should mimic the original recorded input as closely as possible.



Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back? If not, is there some other api that would be appropriate to be used for the first step?



Why?
Using Polly to create speech the 'normal way' -- by feeding text into the polly api -- tends to produce not sufficiently natural sounding speech (though it may be the best text to speech engine currently available). The Polly API speech produced the 'normal way' does not have the correct timing/prosody. We've tried to manually convert speech word-by-word into phonemes and manually add timing information, and then feed this into the Polly API as input, but this is both very laborious, and doesn't produce a very satisfactory result. We have used this in apps. For particularly important parts of the speech, we need to get better quality. We can't use recorded audio from a voice actor, as one might in other circumstances, because then it won't match the rest of the speech, produced by the Polly API.



BTW, before you vote this post down because it doesn't include a little code snippet... consider that this is still a coding problem, just not in the form of 'help me edit my code snippet to do x' -- though a code snippet answer would be a fine form for an answer to the question if such an answer exists! This is actually a broadly important and general coding problem that potentially affects any coder needing to create realistic speech through code.



Thanks










share|improve this question














I want to produce very realistic sounding speech using Amazon Polly -- more realistic than the results produced by allowing Amazon Polly to generate speech audio output from normal text input. In order to do this, I want to tell Polly to do its best to exactly match a given sample of real speech audio file input that was voiced/recorded by a voice actor. In other words, I want to convert the voiced speech produced by the voice actor into a sequence of some kind of codes (eg phonemes, timing codes, etc) suitable as input to the polly api, which can then produce an audio file output that should mimic the original recorded input as closely as possible.



Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back? If not, is there some other api that would be appropriate to be used for the first step?



Why?
Using Polly to create speech the 'normal way' -- by feeding text into the polly api -- tends to produce not sufficiently natural sounding speech (though it may be the best text to speech engine currently available). The Polly API speech produced the 'normal way' does not have the correct timing/prosody. We've tried to manually convert speech word-by-word into phonemes and manually add timing information, and then feed this into the Polly API as input, but this is both very laborious, and doesn't produce a very satisfactory result. We have used this in apps. For particularly important parts of the speech, we need to get better quality. We can't use recorded audio from a voice actor, as one might in other circumstances, because then it won't match the rest of the speech, produced by the Polly API.



BTW, before you vote this post down because it doesn't include a little code snippet... consider that this is still a coding problem, just not in the form of 'help me edit my code snippet to do x' -- though a code snippet answer would be a fine form for an answer to the question if such an answer exists! This is actually a broadly important and general coding problem that potentially affects any coder needing to create realistic speech through code.



Thanks







speech-recognition text-to-speech speech-to-text amazon-polly






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '18 at 2:03









user2330237user2330237

4793520




4793520













  • I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

    – Boober Bunz
    Nov 24 '18 at 2:27











  • @BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

    – gnat
    Nov 24 '18 at 18:00



















  • I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

    – Boober Bunz
    Nov 24 '18 at 2:27











  • @BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

    – gnat
    Nov 24 '18 at 18:00

















I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

– Boober Bunz
Nov 24 '18 at 2:27





I don't think it's a 'bad' question, because it is a real problem... but prepare for the ceremonial vote downs and "too broad" question closing... it might be a better fit for a site like softwareengineering.stackexchange.com.

– Boober Bunz
Nov 24 '18 at 2:27













@BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

– gnat
Nov 24 '18 at 18:00





@BooberBunz when referring other sites, it is often helpful to point that cross-posting is frowned upon

– gnat
Nov 24 '18 at 18:00












1 Answer
1






active

oldest

votes


















-1















Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back?




Do you seriously think that Amazon created some secret API hidden it from the users but some brave hacker will disclose you undocumented API access code here?




If not, is there some other api that would be appropriate to be used for the first step?




This exists in open source, unrelated to AWS of course



https://github.com/KinglittleQ/GST-Tacotron






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%2f53454582%2fusing-amazon-polly-text-to-speech-to-mimic-the-intonation-of-a-real-speech-wavef%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1















    Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back?




    Do you seriously think that Amazon created some secret API hidden it from the users but some brave hacker will disclose you undocumented API access code here?




    If not, is there some other api that would be appropriate to be used for the first step?




    This exists in open source, unrelated to AWS of course



    https://github.com/KinglittleQ/GST-Tacotron






    share|improve this answer




























      -1















      Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back?




      Do you seriously think that Amazon created some secret API hidden it from the users but some brave hacker will disclose you undocumented API access code here?




      If not, is there some other api that would be appropriate to be used for the first step?




      This exists in open source, unrelated to AWS of course



      https://github.com/KinglittleQ/GST-Tacotron






      share|improve this answer


























        -1












        -1








        -1








        Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back?




        Do you seriously think that Amazon created some secret API hidden it from the users but some brave hacker will disclose you undocumented API access code here?




        If not, is there some other api that would be appropriate to be used for the first step?




        This exists in open source, unrelated to AWS of course



        https://github.com/KinglittleQ/GST-Tacotron






        share|improve this answer














        Does some AWS api take speech audio file as input, and turn it into a series of codes (eg phonemes and timing info) that can then be fed into the polly api to generate corresponding speech back?




        Do you seriously think that Amazon created some secret API hidden it from the users but some brave hacker will disclose you undocumented API access code here?




        If not, is there some other api that would be appropriate to be used for the first step?




        This exists in open source, unrelated to AWS of course



        https://github.com/KinglittleQ/GST-Tacotron







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 '18 at 5:59









        Nikolay ShmyrevNikolay Shmyrev

        20k43064




        20k43064






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53454582%2fusing-amazon-polly-text-to-speech-to-mimic-the-intonation-of-a-real-speech-wavef%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

            Berounka

            Fiat S.p.A.

            Type 'String' is not a subtype of type 'int' of 'index'