{"id":5798,"date":"2023-07-08T15:16:38","date_gmt":"2023-07-08T13:16:38","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=5798"},"modified":"2024-03-21T07:57:58","modified_gmt":"2024-03-21T06:57:58","slug":"esp32-mixing-a2dp-with-a-sine-signal","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/","title":{"rendered":"ESP32: Mixing A2DP with a Sine Signal"},"content":{"rendered":"<p>Today I got very upset by a discussion where a user <strong>replaced the original question with a misleading conclusion<\/strong> that mixing an A2DP sink with a sine signal was not possible! Unfortunately he also ignored some helpful comments by some other users. So in order to avoid any confusion I had to delete the whole discussion!<\/p>\n<p><strong>Mixing<\/strong> the output from an <strong>A2DP sink<\/strong> with a <strong>sine signal<\/strong> can be done not only <strong>very easily<\/strong> but also <strong>very efficiently<\/strong> with the help of the <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\">AudioTools framework<\/a>.<\/p>\n<p>The project contains extensive documentation and examples that show<\/p>\n<ul>\n<li>how to process A2DP<\/li>\n<li>how to do mixing <\/li>\n<li>how to generate and output a sine signal<\/li>\n<\/ul>\n<p>So, in the end it is just up to the programmer to <strong>combine the different concepts (or examples) into one final solution<\/strong>.<\/p>\n<p>Mixing audio means that you need to provide the input from <strong>multiple audio sources<\/strong> to be mixed to <strong>one audio result<\/strong>. As the <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\/wiki\/Splitting-and-Merging-Audio\">documentation states<\/a> you can mix on the <strong>input side<\/strong> or on the <strong>output side<\/strong>. Mixing on the input side is usually much more efficient, but there is a simple trick to reduce the memory usage of the output mixer: just split up the output into smaller chunks.<\/p>\n<p>Here is <strong>a first working version<\/strong>:<\/p>\n<pre><code>#include \"AudioTools.h\"\n#include \"BluetoothA2DPSink.h\"\n\nAudioInfo info(44100, 2, 16);\nBluetoothA2DPSink a2dp_sink;\nI2SStream i2s;\nSineWaveGenerator&lt;int16_t&gt; sineWave(10000);  \/\/ max amplitude of 10000\nGeneratedSoundStream&lt;int16_t&gt; sound(sineWave); \nOutputMixer&lt;int16_t&gt; mixer(i2s, 2);  \nconst int buffer_size = 5000; \nuint8_t sound_buffer[buffer_size];\n\n\/\/ Write data to mixer\nvoid read_data_stream(const uint8_t *data, uint32_t length) {\n  \/\/ write a2dp\n  mixer.write(data, length);\n\n  \/\/ write sine tone with identical length\n  sound.readBytes(sound_buffer, length);\n  mixer.write(sound_buffer, length);\n}\n\nvoid setup() {\n  Serial.begin(115200);\n  AudioLogger::instance().begin(Serial, AudioLogger::Warning);\n\n  \/\/ setup Output mixer with min necessary memory\n  mixer.begin(buffer_size);\n\n  \/\/ Register data callback\n  a2dp_sink.set_stream_reader(read_data_stream, false);\n\n  \/\/ Start Bluetooth Audio Receiver\n  a2dp_sink.set_auto_reconnect(false);\n  a2dp_sink.start(\"a2dp-i2s\");\n\n  \/\/ Update sample rate\n  info.sample_rate = a2dp_sink.sample_rate();\n\n  \/\/ start sine wave\n  sineWave.begin(info, N_B4);\n\n  \/\/ setup output\n  auto cfg = i2s.defaultConfig();\n  cfg.copyFrom(info);\n  \/\/ cfg.pin_data = 23;\n  cfg.buffer_count = 8;\n  cfg.buffer_size = 256;\n  i2s.begin(cfg);\n}\n\nvoid loop() { delay(100); } \n\n<\/code><\/pre>\n<p>As you can see, there are <strong>no surprises<\/strong> here: We just write the A2DP signal and the sine signal (with the same length) to the output mixer.<\/p>\n<p>This is just using <strong>quite a lot of RAM<\/strong>: the mixer allocates 2 * 5000 bytes. As stated above we can easily optimize this by reducing the buffer size. Here is a version that just uses 2 * 80 = 160 bytes:<\/p>\n<pre><code>const int buffer_size = 80;  \/\/ split up the output into small slices\nuint8_t sound_buffer[buffer_size];\n\n\/\/ Write data to mixer\nvoid read_data_stream(const uint8_t *data, uint32_t length) {\n  \/\/ To keep the mixing buffer small we split up the output into small slices\n  int count = length \/ buffer_size + 1;\n  for (int j = 0; j &lt; count; j++) {\n    const uint8_t *start = data + (j * buffer_size);\n    const uint8_t *end = min(data + length, start + buffer_size);\n    int len = end - start;\n    if (len &gt; 0) {\n      \/\/ write a2dp slice\n      mixer.write(start, len);\n\n      \/\/ write sine tone with identical length\n      sound.readBytes(sound_buffer, len);\n      mixer.write(sound_buffer, len);\n    }\n  }\n}\n<\/code><\/pre>\n<p>So, the only complexity comes from the memory optimization which is splitting the output into smaller slices!<\/p>\n<p>In order simplify the processing and minimize the risk of adding any errors I have added the new <a href=\"https:\/\/pschatzmann.github.io\/arduino-audio-tools\/classaudio__tools_1_1_slice.html\">Slice class<\/a>:<\/p>\n<pre><code>const int buffer_size = 80;  \/\/ split up the output into small slices\nuint8_t sound_buffer[buffer_size];\n\n\/\/ Write data to mixer\nvoid read_data_stream(const uint8_t *data, uint32_t length) {\n  \/\/ To keep the mixing buffer small we split up the output into small slices\n  Slice&lt;uint8_t&gt; slice(data, length);\n  for (int j = 0; j &lt; slice.slices(buffer_size); j++) {\n      \/\/ write j'th a2dp slice\n      Slice&lt;uint8_t&gt; out = slice.slice(buffer_size, j);\n      mixer.write(out.data(), out.size());\n\n      \/\/ write sine tone with identical length\n      sound.readBytes(sound_buffer, out.size());\n      mixer.write(sound_buffer, out.size());\n    }\n  }\n}\n<\/code><\/pre>\n<p>Of cause you can use this approach to mix the input not only from a sine signal but from <strong>any other audio source<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I got very upset by a discussion where a user replaced the original question with a misleading conclusion that mixing an A2DP sink with a sine signal was not possible! Unfortunately he also ignored some helpful comments by some other users. So in order to avoid any confusion I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20,22],"tags":[46],"class_list":["post-5798","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-machine-sound","tag-communications"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann<\/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.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"Today I got very upset by a discussion where a user replaced the original question with a misleading conclusion that mixing an A2DP sink with a sine signal was not possible! Unfortunately he also ignored some helpful comments by some other users. So in order to avoid any confusion I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-08T13:16:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-21T06:57:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"ESP32: Mixing A2DP with a Sine Signal\",\"datePublished\":\"2023-07-08T13:16:38+00:00\",\"dateModified\":\"2024-03-21T06:57:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/\"},\"wordCount\":341,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/c3.jpg\",\"keywords\":[\"Communications\"],\"articleSection\":[\"Arduino\",\"Machine Sound\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/\",\"name\":\"ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/c3.jpg\",\"datePublished\":\"2023-07-08T13:16:38+00:00\",\"dateModified\":\"2024-03-21T06:57:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/c3.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/c3.jpg\",\"width\":800,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2023\\\/07\\\/08\\\/esp32-mixing-a2dp-with-a-sine-signal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP32: Mixing A2DP with a Sine Signal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann","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.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/","og_locale":"en_US","og_type":"article","og_title":"ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann","og_description":"Today I got very upset by a discussion where a user replaced the original question with a misleading conclusion that mixing an A2DP sink with a sine signal was not possible! Unfortunately he also ignored some helpful comments by some other users. So in order to avoid any confusion I [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/","og_site_name":"Phil Schatzmann","article_published_time":"2023-07-08T13:16:38+00:00","article_modified_time":"2024-03-21T06:57:58+00:00","og_image":[{"width":800,"height":800,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"ESP32: Mixing A2DP with a Sine Signal","datePublished":"2023-07-08T13:16:38+00:00","dateModified":"2024-03-21T06:57:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/"},"wordCount":341,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg","keywords":["Communications"],"articleSection":["Arduino","Machine Sound"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/","url":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/","name":"ESP32: Mixing A2DP with a Sine Signal - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg","datePublished":"2023-07-08T13:16:38+00:00","dateModified":"2024-03-21T06:57:58+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/04\/c3.jpg","width":800,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2023\/07\/08\/esp32-mixing-a2dp-with-a-sine-signal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"ESP32: Mixing A2DP with a Sine Signal"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/5798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=5798"}],"version-history":[{"count":28,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/5798\/revisions"}],"predecessor-version":[{"id":5826,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/5798\/revisions\/5826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/4598"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=5798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=5798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=5798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}