<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="372671" data-post-id="372671">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tomashco" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tomashco/120/36312_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tomashco
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/feliks" rel="nofollow">@Feliks</a> I tried to implement the openai realtime example available <a href="https://github.com/membraneframework/membrane_demo/blob/master/livebooks/openai_realtime_with_membrane_webrtc/openai_realtime_with_membrane_webrtc.livemd" rel="noopener nofollow ugc">here</a>, trying to integrate it into a liveview example app.<br>
As for integrating membrane in liveview I followed this example <a href="https://github.com/membraneframework/membrane_demo/tree/master/webrtc_live_view" class="inline-onebox" rel="noopener nofollow ugc">membrane_demo/webrtc_live_view at master · membraneframework/membrane_demo · GitHub</a> .</p>
<p>In my implementation, what happens is that the audio is captured and (i think) is sent to openAI, because I can receive the response. But the problem is that together with the response I receive also all the mediaCapture sent over to the server (i.e. Echo).</p>
<p>Do you know what could cause this issue?<br>
this is the liveview implementation: <a href="https://github.com/tomashco/pento/blob/main/lib/pento_web/live/call.ex" class="inline-onebox" rel="noopener nofollow ugc">pento/lib/pento_web/live/call.ex at main · tomashco/pento · GitHub</a><br>
this is the pipeline that gets called: <a href="https://github.com/tomashco/pento/blob/main/lib/pento/call/pipeline.ex" class="inline-onebox" rel="noopener nofollow ugc">pento/lib/pento/call/pipeline.ex at main · tomashco/pento · GitHub</a></p>
<p>this is the integration with the openai endpoint: <a href="https://github.com/tomashco/pento/blob/main/lib/openai_endpoint.ex" class="inline-onebox" rel="noopener nofollow ugc">pento/lib/openai_endpoint.ex at main · tomashco/pento · GitHub</a><br>
this is the integration of the websocket: <a href="https://github.com/tomashco/pento/blob/main/lib/openai_websocket.ex" class="inline-onebox" rel="noopener nofollow ugc">pento/lib/openai_websocket.ex at main · tomashco/pento · GitHub</a></p>
<p>I’m pretty sure the problem lays in the pipeline, but I don’t understand what is wrong.</p>
<p>thank you to everyone can help!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="372671" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/openai-realtime-integration-with-membrane-webrtc/69344/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-372671" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="372671"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>