question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to pass raw byte data into the pipeline?

See original GitHub issue

I’m currently working on a implementation where I occasionally receive raw byte data from a TCP socket. I want to pass this data into the pipeline but the current AudioSource😒 seem to be limited to microphone input and audio files. Does the current version support what I’m trying to implement or do I have to write it myself?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
juanmc2005commented, Jul 28, 2022

Happy to hear it works! Let me know if you run into any troubles with it. I’ll make sure to include it in the next release.

But I have to edit the uri = f"ws://{name}:{port} in WebSocketAudioSource because the // will cause path error when using RTTMWriter.

Would you mind changing the uri and opening a pull request?

1reaction
juanmc2005commented, Jul 26, 2022

@ckliao-nccu would it help your use case if diart provided a WebsocketAudioSource that handles the websocket server loop? or would that be incompatible with what you’re trying to achieve?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Streaming a raw data bytes by byte into gstreamer pipeline
I have a problem that a gstreamer pipeline which has to take raw data byte by byte into pipeline, and it has to...
Read more >
c# - Write() and Read() raw bytes from NetworkStream, data is ...
MAXSIZE is the known size of the data I want to send. public static void SendBytes(TcpClient clientSocket, byte[] outStream) { Debug ...
Read more >
"Raw" byte slice command · Issue #472 · go-redis/redis - GitHub
So i was just proposing that there is a mechanism to bypass the cmd serialization process and insert basically a []byte into a...
Read more >
What are some ways to pass raw bytes to a program via the ...
Use echo -e and pipe to your program's input. Example: echo -e "\x41\x42\x43\x44" | <executable> Will write ABCD as input.
Read more >
about Pipelines - PowerShell | Microsoft Learn
However, it is important to note that PowerShell's pipeline is object-oriented and does not support raw byte data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found