You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this issue here since it's where the code with the relevant fields are. Consider moving it to a more appropiate repository if necessary.
The following code creates a track to communicate with the OpenAI Realtime models.
Notice the params used in the NewTracks method, especially those with comments on top of them (i.e. bidirectionalMediaStream and kind):
The tracks array is composed of TrackObject elements, which looks like:
TrackObject:
type: objectproperties:
location:
type: stringenum:
- local
- remotedescription: If you want to share a track, it should be local. If you want to play a track shared by a remote agent, it should be remotemid:
type: stringdescription: mid associated to track's transceiver. It should be set with local tracks onlysessionId:
type: stringdescription: Session ID of the track owner. It should be set for remote tracks onlytrackName:
type: stringdescription: Given name for the track
The TrackObject schema doesn't reference neither bidirectionalMediaStream nor kind fields in it. If these parameters do actually change the behavior of the API call (I haven't tested this), it might happen that they're undocumented.
If that's the case, could we have an update for the schema?
The text was updated successfully, but these errors were encountered:
I'm opening this issue here since it's where the code with the relevant fields are. Consider moving it to a more appropiate repository if necessary.
The following code creates a track to communicate with the OpenAI Realtime models.
Notice the params used in the
NewTracks
method, especially those with comments on top of them (i.e.bidirectionalMediaStream
andkind
):orange/app/durableObjects/ChatRoom.server.ts
Lines 394 to 406 in 61608e1
NewTracks
is defined here. The method sends thebody
argument directly as the request body:orange/app/utils/openai.server.ts
Lines 44 to 57 in 61608e1
Developers find the Cloudflare Calls API reference here, which is where the OpenAPI schema for the endpoint used in
NewTracks
can be found.We can find that the schema for this endpoint is defined as:
The
tracks
array is composed ofTrackObject
elements, which looks like:The
TrackObject
schema doesn't reference neitherbidirectionalMediaStream
norkind
fields in it. If these parameters do actually change the behavior of the API call (I haven't tested this), it might happen that they're undocumented.If that's the case, could we have an update for the schema?
The text was updated successfully, but these errors were encountered: