{"id":1225,"date":"2024-12-13T23:38:30","date_gmt":"2024-12-13T18:08:30","guid":{"rendered":"https:\/\/www.mrcoder701.com\/?p=1225"},"modified":"2024-12-13T23:38:33","modified_gmt":"2024-12-13T18:08:33","slug":"convert-text-speech-python","status":"publish","type":"post","link":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/","title":{"rendered":"Text To Speech Conversion Using\u00a0Python"},"content":{"rendered":"

Python is a powerful and adaptable language used for multi-purpose programming. There are several things you can do with Python, one of which is text to speech conversion.<\/p>

This article will walk you through the process of converting text to speech using Python and Google\u2019s Text-To-Speech service. Google Cloud Text-to-Speech turns text into human-sounding speech in over 100 voices and 20+ languages and dialects.<\/p>

It delivers high-fidelity audio by combining revolutionary voice synthesis technology (WaveNet) with Google\u2019s strong neural networks. With this simple API, you can develop lifelike interactions with your consumers, revolutionising customer service, device interaction, and other applications.<\/p>

We\u2019ll be using the Python library gTTS (Google Text-to-Speech) for this purpose.<\/p>

(Google Text-to-Speech) is a Python library and command-line program that interfaces with Google Translate\u2019s text-to-speech API. This function saves spoken data to a file, a bytestring, or for additional audio manipulation or stdout.<\/p>

It features flexible pre-processing and tokenizing, as well as automatic retrieval of supported languages. The gTTS API supports several languages including English, Hindi, Tamil, French, German and many more.<\/p>

Let\u2019s being with installing the gTTS package first.<\/p>

<\/circle><\/circle><\/circle><\/g><\/svg><\/span><\/path><\/path><\/svg><\/span>
pip install gtts<\/span><\/span><\/code><\/pre><\/div>

After installation, you can run the following scripts.<\/p>

Note that gTTS, which works wonderfully in Python, requires an online connection to function because it relies on Google to obtain audio data, therefore your machine must have an active internet connection.<\/p>

Python Program to convert a text into\u00a0speech<\/strong><\/h2>
<\/circle><\/circle><\/circle><\/g><\/svg><\/span><\/path><\/path><\/svg><\/span>
import<\/span> os<\/span><\/span>\nfrom<\/span> gtts <\/span>import<\/span> gTTS<\/span><\/span>\n<\/span>\nText <\/span>=<\/span> <\/span>"<\/span>I love Medium and Python programming Language<\/span>"<\/span><\/span>\n<\/span>\nprint<\/span>(<\/span>"<\/span>please wait...processing<\/span>"<\/span>)<\/span><\/span>\nTTS<\/span> <\/span>=<\/span> gTTS(<\/span>text<\/span>=<\/span>Text, <\/span>lang<\/span>=<\/span>'<\/span>en-uk<\/span>'<\/span>)<\/span><\/span>\n<\/span>\n# Save to mp3 in current dir.TTS.save("voice_test.mp3")<\/span><\/span>\n# Plays the mp3 using the default app on your system<\/span><\/span>\n# that is linked to mp3s.<\/span><\/span>\n<\/span>\nos.system(<\/span>"<\/span>start voice.mp3<\/span>"<\/span>)<\/span><\/span><\/code><\/pre><\/div>

Save the file and run it this should open your default music player app and play the audio.<\/p>

But what if you wanted to turn a long string or document into speech? You could do that by saving the material to a text file and then converting it to speech as seen below.<\/p>


Python program to Convert a text file into speech<\/h3>
<\/circle><\/circle><\/circle><\/g><\/svg><\/span><\/path><\/path><\/svg><\/span>
import<\/span> os<\/span><\/span>\nfrom<\/span> gtts <\/span>import<\/span> gTTS<\/span><\/span>\n<\/span>\n# You will need a text file named test.txt<\/span><\/span>\n# to play, put it in the current dir.<\/span><\/span>\n<\/span>\nFLIST<\/span> <\/span>=<\/span> <\/span>open<\/span>(<\/span>"<\/span>test.txt<\/span>"<\/span>, <\/span>"<\/span>r<\/span>"<\/span>).read().replace(<\/span>"<\/span>\\n<\/span>"<\/span>, <\/span>"<\/span> <\/span>"<\/span>)<\/span><\/span>\nprint<\/span>(<\/span>"<\/span>please wait...processing<\/span>"<\/span>)<\/span><\/span>\nTTS<\/span> <\/span>=<\/span> gTTS(<\/span>text<\/span>=<\/span>str<\/span>(<\/span>FLIST<\/span>), <\/span>lang<\/span>=<\/span>'<\/span>en-uk<\/span>'<\/span>)<\/span><\/span>\n<\/span>\n# Save to mp3 in current dir.TTS.save("voice.mp3")<\/span><\/span>\n# Plays the mp3 using the default app on your system# that is linked to mp3s.<\/span><\/span>\nprint<\/span>(<\/span>FLIST<\/span>)<\/span><\/span>\nos.system(<\/span>"<\/span>start voice.mp3<\/span>"<\/span>)<\/span><\/span><\/code><\/pre><\/div>

Save and run the file you should get the desired output.<\/p>","protected":false},"excerpt":{"rendered":"

Python is a powerful and adaptable language used for multi-purpose programming. There are several things you can do with Python, one of which is text to speech conversion. This article…<\/p>\n","protected":false},"author":2,"featured_media":1226,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[214,164,212,213],"class_list":["post-1225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-programmig","tag-python-2","tag-speech","tag-text"],"yoast_head":"\nText To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣<\/title>\n<meta name=\"description\" content=\"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Text To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣\" \/>\n<meta property=\"og:description\" content=\"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\" \/>\n<meta property=\"og:site_name\" content=\"🌟Code with MrCoder7️⃣0️⃣1️⃣\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-13T18:08:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-13T18:08:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1312\" \/>\n\t<meta property=\"og:image:height\" content=\"736\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"mr.coder\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mr.coder\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\"},\"author\":{\"name\":\"mr.coder\",\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d\"},\"headline\":\"Text To Speech Conversion Using\u00a0Python\",\"datePublished\":\"2024-12-13T18:08:30+00:00\",\"dateModified\":\"2024-12-13T18:08:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\"},\"wordCount\":313,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d\"},\"image\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg\",\"keywords\":[\"Programmig\",\"Python\",\"Speech\",\"Text\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\",\"url\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\",\"name\":\"Text To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣\",\"isPartOf\":{\"@id\":\"https:\/\/www.mrcoder701.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg\",\"datePublished\":\"2024-12-13T18:08:30+00:00\",\"dateModified\":\"2024-12-13T18:08:33+00:00\",\"description\":\"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage\",\"url\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg\",\"contentUrl\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg\",\"width\":1312,\"height\":736},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mrcoder701.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text To Speech Conversion Using\u00a0Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mrcoder701.com\/#website\",\"url\":\"https:\/\/www.mrcoder701.com\/\",\"name\":\"Blog With MrCoder701\",\"description\":\"Blog related to programming\",\"publisher\":{\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mrcoder701.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d\",\"name\":\"mr.coder\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/06\/369B947D-A5EE-4B16-816A-5EE55D1DDF96_L0_001-10_6_2024-6-13-24-PM.png\",\"contentUrl\":\"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/06\/369B947D-A5EE-4B16-816A-5EE55D1DDF96_L0_001-10_6_2024-6-13-24-PM.png\",\"width\":500,\"height\":500,\"caption\":\"mr.coder\"},\"logo\":{\"@id\":\"https:\/\/www.mrcoder701.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/mrcoder701.com\",\"https:\/\/www.instagram.com\/mr_coder_701\/\",\"https:\/\/www.youtube.com\/@mrcoder701\"],\"url\":\"https:\/\/www.mrcoder701.com\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Text To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣","description":"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/","og_locale":"en_US","og_type":"article","og_title":"Text To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣","og_description":"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more","og_url":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/","og_site_name":"🌟Code with MrCoder7️⃣0️⃣1️⃣","article_published_time":"2024-12-13T18:08:30+00:00","article_modified_time":"2024-12-13T18:08:33+00:00","og_image":[{"width":1312,"height":736,"url":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg","type":"image\/jpeg"}],"author":"mr.coder","twitter_card":"summary_large_image","twitter_misc":{"Written by":"mr.coder","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#article","isPartOf":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/"},"author":{"name":"mr.coder","@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d"},"headline":"Text To Speech Conversion Using\u00a0Python","datePublished":"2024-12-13T18:08:30+00:00","dateModified":"2024-12-13T18:08:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/"},"wordCount":313,"commentCount":5,"publisher":{"@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d"},"image":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg","keywords":["Programmig","Python","Speech","Text"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/","url":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/","name":"Text To Speech Conversion Using\u00a0Python - 🌟Code with MrCoder7️⃣0️⃣1️⃣","isPartOf":{"@id":"https:\/\/www.mrcoder701.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage"},"image":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg","datePublished":"2024-12-13T18:08:30+00:00","dateModified":"2024-12-13T18:08:33+00:00","description":"The gTTS API provides the facility to convert text files into different languages such as English, Hindi, German, Tamil, French, and many more","breadcrumb":{"@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#primaryimage","url":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg","contentUrl":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg","width":1312,"height":736},{"@type":"BreadcrumbList","@id":"https:\/\/www.mrcoder701.com\/2024\/12\/13\/convert-text-speech-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mrcoder701.com\/"},{"@type":"ListItem","position":2,"name":"Text To Speech Conversion Using\u00a0Python"}]},{"@type":"WebSite","@id":"https:\/\/www.mrcoder701.com\/#website","url":"https:\/\/www.mrcoder701.com\/","name":"Blog With MrCoder701","description":"Blog related to programming","publisher":{"@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mrcoder701.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/ba1cd6b2ad26df384b1a655341eaef5d","name":"mr.coder","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/image\/","url":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/06\/369B947D-A5EE-4B16-816A-5EE55D1DDF96_L0_001-10_6_2024-6-13-24-PM.png","contentUrl":"https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/06\/369B947D-A5EE-4B16-816A-5EE55D1DDF96_L0_001-10_6_2024-6-13-24-PM.png","width":500,"height":500,"caption":"mr.coder"},"logo":{"@id":"https:\/\/www.mrcoder701.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/mrcoder701.com","https:\/\/www.instagram.com\/mr_coder_701\/","https:\/\/www.youtube.com\/@mrcoder701"],"url":"https:\/\/www.mrcoder701.com\/author\/admin\/"}]}},"rttpg_featured_image_url":{"full":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg",1312,736,false],"landscape":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg",1312,736,false],"portraits":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg",1312,736,false],"thumbnail":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-150x150.jpeg",150,150,true],"medium":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-300x168.jpeg",300,168,true],"large":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-1024x574.jpeg",1024,574,true],"1536x1536":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg",1312,736,false],"2048x2048":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ.jpeg",1312,736,false],"woocommerce_thumbnail":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-300x300.jpeg",300,300,true],"woocommerce_single":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-600x337.jpeg",600,337,true],"woocommerce_gallery_thumbnail":["https:\/\/www.mrcoder701.com\/wp-content\/uploads\/2024\/12\/a-blog-thumbnail-with-a-bright-blue-back_OxnTK0ycSjyl5bd7N-2NEQ_2cxRlnAHTcqTBEvr95JMgQ-150x150.jpeg",150,150,true]},"rttpg_author":{"display_name":"mr.coder","author_link":"https:\/\/www.mrcoder701.com\/author\/admin\/"},"rttpg_comment":5,"rttpg_category":"<a href=\"https:\/\/www.mrcoder701.com\/category\/python\/\" rel=\"category tag\">Python<\/a>","rttpg_excerpt":"Python is a powerful and adaptable language used for multi-purpose programming. There are several things you can do with Python, one of which is text to speech conversion. This article…","_links":{"self":[{"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/posts\/1225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/comments?post=1225"}],"version-history":[{"count":1,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/posts\/1225\/revisions"}],"predecessor-version":[{"id":1227,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/posts\/1225\/revisions\/1227"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/media\/1226"}],"wp:attachment":[{"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/media?parent=1225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/categories?post=1225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mrcoder701.com\/wp-json\/wp\/v2\/tags?post=1225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}