Skip to content

Add ability to steam audio as base64 encoded json#123

Open
Dyster2000 wants to merge 1 commit intoamigniter:mainfrom
Dyster2000:base64-audio-stream
Open

Add ability to steam audio as base64 encoded json#123
Dyster2000 wants to merge 1 commit intoamigniter:mainfrom
Dyster2000:base64-audio-stream

Conversation

@Dyster2000
Copy link
Copy Markdown

No description provided.

@Dyster2000
Copy link
Copy Markdown
Author

This fixed a couple bugs.

  1. In stream_function when it is parsing "start" parms, it checked if metadata was set, but then passes argv[2] to the is_valid_utf8() function, instead of [5] (or metadata).
  2. I updated the AudioStreamer::isConnected() function as I found it started streaming the audio as soon as the WebSocketClient connected, so I was having multiple frames of audio written out before the send_initial_metadata() was called.

Then, per the title, I added the ability to send audio base64 encoded wrapped in json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant