{"id":3608,"date":"2023-11-07T12:19:30","date_gmt":"2023-11-07T10:19:30","guid":{"rendered":"https:\/\/www.robinglauser.ch\/blog\/?p=3608"},"modified":"2023-11-07T12:25:19","modified_gmt":"2023-11-07T10:25:19","slug":"troubleshooting-openais-text-to-speech-implementation-in-python","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/","title":{"rendered":"Troubleshooting OpenAI&#8217;s Text-to-Speech Implementation in Python"},"content":{"rendered":"<div>\n<pre>import io\r\nimport os\r\n\r\nfrom openai import OpenAI\r\nfrom pydub import AudioSegment\r\nfrom pydub.playback import play\r\n\r\nclient = OpenAI()\r\n\r\n\r\ndef stream_and_play(text):\r\n    response = client.audio.speech.create(\r\n        model=\"tts-1\",\r\n        voice=\"alloy\",\r\n        input=text,\r\n    )\r\n\r\n    # Convert the binary response content to a byte stream\r\n    byte_stream = io.BytesIO(response.content)\r\n\r\n    # Read the audio data from the byte stream\r\n    audio = AudioSegment.from_file(byte_stream, format=\"mp3\")\r\n\r\n    # Play the audio\r\n    play(audio)\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    text = input(\"Enter text: \")\r\n    stream_and_play(text)<\/pre>\n<\/div>\n<p>The above example can be found in the documentation of OpenAI: <a href=\"https:\/\/platform.openai.com\/docs\/guides\/text-to-speech\">https:\/\/platform.openai.com\/docs\/guides\/text-to-speech<\/a><\/p>\n<p>However it didn&#8217;t work for me for various reasons:<\/p>\n<pre>raise OpenAIError(openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable<\/pre>\n<p>First I had to add the following lines to load the API Key from the .env file above the <strong>client = OpenAI() <\/strong>line.<\/p>\n<pre>from dotenv import load_dotenv\r\nload_dotenv()<\/pre>\n<p>To have this work you also need a <strong>.env<\/strong> file in the same directory with your api key:<\/p>\n<pre>OPENAI_API_KEY=sk-sdfsdjflskljsljsjlljljsjldlfjjdslkfjsl<\/pre>\n<p>After that I encountered a new error when running the code:<\/p>\n<pre>info = json.loads(output) File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.10\/lib\/python3.10\/json\/__init__.py\", line 346, in loads return _default_decoder.decode(s) File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.10\/lib\/python3.10\/json\/decoder.py\", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File \"\/Library\/Frameworks\/Python.framework\/Versions\/3.10\/lib\/python3.10\/json\/decoder.py\", line 355, in raw_decode raise JSONDecodeError(\"Expecting value\", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)<\/pre>\n<p>Searching for it revealed having to reinstall various things via brew:<\/p>\n<pre>brew reinstall tesseract\r\nbrew uninstall librist --ignore-dependencies\r\nbrew uninstall mbedtls --ignore-dependencies\r\nbrew reinstall ffmpeg<\/pre>\n<p>After running the above commands it worked. If you encounter the problem I&#8217;d be interesting if only running <strong>brew reinstall ffmpeg<\/strong> would solve the problem.<\/p>\n<p>As the audio shouldn&#8217;t have anything to do with the tesseract (OCR) package. But in the error I had it complained about the tesseract<\/p>\n<h3><strong>Sources: <\/strong><\/h3>\n<p><a href=\"https:\/\/www.reddit.com\/r\/ffmpeg\/comments\/16kjvyr\/workaround_for_leptonica_issue_on_mac_rename_a\/\">https:\/\/www.reddit.com\/r\/ffmpeg\/comments\/16kjvyr\/workaround_for_leptonica_issue_on_mac_rename_a\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/jiaaro\/pydub\/issues\/450\">https:\/\/github.com\/jiaaro\/pydub\/issues\/450<\/a><\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/77110765\/error-while-run-command-ffmpeg-library-not-loaded-opt-homebrew-opt-mbedtls-l\">https:\/\/stackoverflow.com\/questions\/77110765\/error-while-run-command-ffmpeg-library-not-loaded-opt-homebrew-opt-mbedtls-l<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">import io import os from openai import OpenAI from pydub import AudioSegment from pydub.playback import play client = OpenAI() def stream_and_play(text): response = client.audio.speech.create( model=&#8221;tts-1&#8243;, voice=&#8221;alloy&#8221;, input=text, ) # Convert the binary response content to a byte stream byte_stream = io.BytesIO(response.content) # Read the audio data from the byte stream audio = AudioSegment.from_file(byte_stream, format=&#8221;mp3&#8243;) # Play the audio play(audio) if &#8230; <a class=\"read-more\" href=\"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":3613,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[396,398,397],"class_list":["post-3608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-openai","tag-text-to-speech","tag-tts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Troubleshooting OpenAI&#039;s Text-to-Speech Implementation in Python - Robin Glauser<\/title>\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.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Troubleshooting OpenAI&#039;s Text-to-Speech Implementation in Python - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"import io import os from openai import OpenAI from pydub import AudioSegment from pydub.playback import play client = OpenAI() def stream_and_play(text): response = client.audio.speech.create( model=&quot;tts-1&quot;, voice=&quot;alloy&quot;, input=text, ) # Convert the binary response content to a byte stream byte_stream = io.BytesIO(response.content) # Read the audio data from the byte stream audio = AudioSegment.from_file(byte_stream, format=&quot;mp3&quot;) # Play the audio play(audio) if ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-07T10:19:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-07T10:25:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon-1024x572.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"572\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"Troubleshooting OpenAI&#8217;s Text-to-Speech Implementation in Python\",\"datePublished\":\"2023-11-07T10:19:30+00:00\",\"dateModified\":\"2023-11-07T10:25:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/\"},\"wordCount\":176,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/mikrofon.png\",\"keywords\":[\"openai\",\"text-to-speech\",\"tts\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/\",\"name\":\"Troubleshooting OpenAI's Text-to-Speech Implementation in Python - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/mikrofon.png\",\"datePublished\":\"2023-11-07T10:19:30+00:00\",\"dateModified\":\"2023-11-07T10:25:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/mikrofon.png\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/mikrofon.png\",\"width\":3348,\"height\":1870},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/2023\\\/11\\\/07\\\/troubleshooting-openais-text-to-speech-implementation-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting OpenAI&#8217;s Text-to-Speech Implementation in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/#\\\/schema\\\/person\\\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\\\/\\\/www.robinglauser.ch\",\"https:\\\/\\\/www.instagram.com\\\/robinglauser\\\/\",\"https:\\\/\\\/x.com\\\/robinglauser\"],\"url\":\"https:\\\/\\\/www.robinglauser.ch\\\/blog\\\/author\\\/robin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Troubleshooting OpenAI's Text-to-Speech Implementation in Python - Robin Glauser","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.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Troubleshooting OpenAI's Text-to-Speech Implementation in Python - Robin Glauser","og_description":"import io import os from openai import OpenAI from pydub import AudioSegment from pydub.playback import play client = OpenAI() def stream_and_play(text): response = client.audio.speech.create( model=\"tts-1\", voice=\"alloy\", input=text, ) # Convert the binary response content to a byte stream byte_stream = io.BytesIO(response.content) # Read the audio data from the byte stream audio = AudioSegment.from_file(byte_stream, format=\"mp3\") # Play the audio play(audio) if ... Read More","og_url":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/","og_site_name":"Robin Glauser","article_published_time":"2023-11-07T10:19:30+00:00","article_modified_time":"2023-11-07T10:25:19+00:00","og_image":[{"width":1024,"height":572,"url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon-1024x572.png","type":"image\/png"}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"Troubleshooting OpenAI&#8217;s Text-to-Speech Implementation in Python","datePublished":"2023-11-07T10:19:30+00:00","dateModified":"2023-11-07T10:25:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/"},"wordCount":176,"commentCount":0,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon.png","keywords":["openai","text-to-speech","tts"],"articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/","url":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/","name":"Troubleshooting OpenAI's Text-to-Speech Implementation in Python - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon.png","datePublished":"2023-11-07T10:19:30+00:00","dateModified":"2023-11-07T10:25:19+00:00","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#primaryimage","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon.png","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2023\/11\/mikrofon.png","width":3348,"height":1870},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2023\/11\/07\/troubleshooting-openais-text-to-speech-implementation-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"Troubleshooting OpenAI&#8217;s Text-to-Speech Implementation in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=3608"}],"version-history":[{"count":6,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3608\/revisions"}],"predecessor-version":[{"id":3615,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3608\/revisions\/3615"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media\/3613"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=3608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=3608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=3608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}