Microphone support #23

Closed
opened 2022-11-08 18:00:35 -06:00 by streetpea · 18 comments
streetpea commented 2022-11-08 18:00:35 -06:00 (Migrated from github.com)

Various people have requested being able to use a microphone to use PlayStation voice chat via Chiaki. Right now the best solution for Steam Deck is probably using the Discord app via the flatpak. However, some users don’t like that / have friends playing on PlayStation that would like to use PlayStation chat. I’m opening this as an issue to look at once some of the other features are finished or if someone else wants to take a stab at this.

Various people have requested being able to use a microphone to use PlayStation voice chat via Chiaki. Right now the best solution for Steam Deck is probably using the Discord app via the flatpak. However, some users don’t like that / have friends playing on PlayStation that would like to use PlayStation chat. I’m opening this as an issue to look at once some of the other features are finished or if someone else wants to take a stab at this.
chanksworld commented 2022-11-10 08:58:55 -06:00 (Migrated from github.com)

I second this, microphone support is one of the pillars which is holding Chiaki back from being truly great . An added plus would be the abiliy to use regular non-mic headohones with the built-in steamdeck mic like on dualsense controllers.

I second this, microphone support is one of the pillars which is holding Chiaki back from being truly _great_ . An added plus would be the abiliy to use regular non-mic headohones with the built-in steamdeck mic like on dualsense controllers.
chanksworld commented 2023-01-27 00:40:33 -06:00 (Migrated from github.com)

while this is being worked on (hopefully) any idea if using the pulse headset while in same room as ps5 could be a workaround? Considering buying one for this

while this is being worked on (hopefully) any idea if using the pulse headset while in same room as ps5 could be a workaround? Considering buying one for this
jbaiter commented 2023-01-27 01:37:25 -06:00 (Migrated from github.com)

Do you know if the microphone works in the official remote play app? I think I've tried it once with the Astro Controller Demo but could not get it to work.

Do you know if the microphone works in the official remote play app? I think I've tried it once with the Astro Controller Demo but could not get it to work.
chanksworld commented 2023-01-27 01:46:44 -06:00 (Migrated from github.com)

Yes it works in the official app. Through controller or any input on pc. Works with deck mic when running on windows

Yes it works in the official app. Through controller or any input on pc. Works with deck mic when running on windows
jbaiter commented 2023-01-27 03:48:41 -06:00 (Migrated from github.com)

Thanks, so that will probably require some more reverse engineering, currently there's nothing in Chiaki regarding mic support.

Thanks, so that will probably require some more reverse engineering, currently there's nothing in Chiaki regarding mic support.
streetpea commented 2023-01-27 04:25:05 -06:00 (Migrated from github.com)

It’s in the takion.proto in several places such as: github.com/streetpea/chiaki4deck@29da0f5969/lib/protobuf/takion.proto (L373) and here: https://github.com/streetpea/chiaki4deck/blob/main/lib/protobuf/takion.proto#L38 though the mic/micconnection doesn’t seem to be linked into Chiaki other than sending a default mute type. For example, there is no link to the micconnection in the stream connection code (or seemingly any other Chiaki code for that matter). In contrast, the controller connection from takion.proto is referenced here)

It’s in the takion.proto in several places such as: https://github.com/streetpea/chiaki4deck/blob/29da0f5969060f303998fd766dc4cfd0ff298ee5/lib/protobuf/takion.proto#L373 and here: https://github.com/streetpea/chiaki4deck/blob/main/lib/protobuf/takion.proto#L38 though the mic/micconnection doesn’t seem to be linked into Chiaki other than sending a default mute type. For example, there is no link to the micconnection in the stream connection code (or seemingly any other Chiaki code for that matter). In contrast, the controller connection from takion.proto is referenced [here](https://github.com/streetpea/chiaki4deck/blob/main/lib/src/streamconnection.c#L858))
sdf86 commented 2023-05-03 13:01:26 -05:00 (Migrated from github.com)

Is this still being worked on?

Is this still being worked on?
RuLasky commented 2023-05-11 21:26:03 -05:00 (Migrated from github.com)

hello, sorry to disturb you. Are you still working on chiaki4deck? Because I wanted to use the microphone is I saw that it was not yet available. Thank you very much and again sorry

hello, sorry to disturb you. Are you still working on chiaki4deck? Because I wanted to use the microphone is I saw that it was not yet available. Thank you very much and again sorry
streetpea commented 2023-05-25 21:25:33 -05:00 (Migrated from github.com)

I stopped working on it for a while but I will start working on it again.

I stopped working on it for a while but I will start working on it again.
sdf86 commented 2023-05-26 08:53:14 -05:00 (Migrated from github.com)

Thank you! Microphone support is going to be a game changer for sure
(literally!).

On Thu, May 25, 2023 at 10:25 PM streetpea @.***> wrote:

I stopped working on it for a while but I will start working on it again.

—
Reply to this email directly, view it on GitHub
https://github.com/streetpea/chiaki4deck/issues/23#issuecomment-1563729222,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5RKRIEVYCYXGUNYCH3DNKDXIAICPANCNFSM6AAAAAAR233KM4
.
You are receiving this because you commented.Message ID:
@.***>

Thank you! Microphone support is going to be a game changer for sure (literally!). On Thu, May 25, 2023 at 10:25 PM streetpea ***@***.***> wrote: > I stopped working on it for a while but I will start working on it again. > > — > Reply to this email directly, view it on GitHub > <https://github.com/streetpea/chiaki4deck/issues/23#issuecomment-1563729222>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A5RKRIEVYCYXGUNYCH3DNKDXIAICPANCNFSM6AAAAAAR233KM4> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
cetowne commented 2023-05-30 23:08:26 -05:00 (Migrated from github.com)

I stopped working on it for a while but I will start working on it again.

Thank you! This would be epic. Let me know if there’s a way to support or help!

> I stopped working on it for a while but I will start working on it again. Thank you! This would be epic. Let me know if there’s a way to support or help!
danielkerwin commented 2023-06-01 03:54:50 -05:00 (Migrated from github.com)

I stopped working on it for a while but I will start working on it again.

If mic was working, I would never need to sit down at the actual PS5 again.

It’d be amazing if you can support this 😍

> I stopped working on it for a while but I will start working on it again. If mic was working, I would never need to sit down at the actual PS5 again. It’d be amazing if you can support this 😍
streetpea commented 2023-09-30 13:50:33 -05:00 (Migrated from github.com)

Mic is being worked on at https://github.com/streetpea/chiaki_mic. @jbaiter have you looked at mic support at all? I'm trying to add mic support and able to form audio messages via recorded audio that I send over takion (github.com/streetpea/chiaki_mic@f3128a4ac6/lib/src/takion.c (L566)) but right now nothing is happening. I tried piping these audio messages to the playback function for received audio in this branch (https://github.com/streetpea/chiaki_mic/tree/audio-test) as a test and that works (I can hear recorded audio played back via the speaker ... i.e., decrypted, opus decoded and then played back) so it seems that the audio packets are correctly formed and the encryption follows what's done for the controller feedback packets (github.com/streetpea/chiaki_mic@4acaecf265/lib/src/takion.c (L513)). However, given the audio test shows no audio, clearly something is wrong. I have been talking to Florian Grill (he implemented mic in PS Play) and it seems to be very close to what he has so is at least close to being correct...do you have any insight into this?

Note: I'm implementing this in base Chiaki first and after submitting a pull request (i.e., git send-email) there will add to chiaki4deck so now it's just based off of the latest Chiaki code.

Mic is being worked on at https://github.com/streetpea/chiaki_mic. @jbaiter have you looked at mic support at all? I'm trying to add mic support and able to form audio messages via recorded audio that I send over takion (https://github.com/streetpea/chiaki_mic/blob/f3128a4ac6ee90906df8b7ee632ffcbad5218ead/lib/src/takion.c#L566) but right now nothing is happening. I tried piping these audio messages to the playback function for received audio in this branch (https://github.com/streetpea/chiaki_mic/tree/audio-test) as a test and that works (I can hear recorded audio played back via the speaker ... i.e., decrypted, opus decoded and then played back) so it seems that the audio packets are correctly formed and the encryption follows what's done for the controller feedback packets (https://github.com/streetpea/chiaki_mic/blob/4acaecf2652e278b792d5b0274bf156419445e83/lib/src/takion.c#L513). However, given the audio test shows no audio, clearly something is wrong. I have been talking to Florian Grill (he implemented mic in PS Play) and it seems to be very close to what he has so is at least close to being correct...do you have any insight into this? Note: I'm implementing this in base Chiaki first and after submitting a pull request (i.e., git send-email) there will add to chiaki4deck so now it's just based off of the latest Chiaki code.
jbaiter commented 2023-09-30 13:59:21 -05:00 (Migrated from github.com)

Sorry, I haven't look into it very closely :-( I was going to point you to Florian Grill as well 😅 Maybe he can send you some decrypted packet dumps and you can compare?

Sorry, I haven't look into it very closely :-( I was going to point you to Florian Grill as well 😅 Maybe he can send you some decrypted packet dumps and you can compare?
streetpea commented 2023-10-01 13:34:58 -05:00 (Migrated from github.com)

From my tests (playback of encrypted message) it seems like the audio message is being formed correctly but Florian Grill is going to send me a sample before encryption for a given audio input to check...if we get the same result then it must be something with the encryption/gmac but I'm hoping it's not that bc debugging that could prove challenging.

From my tests (playback of encrypted message) it seems like the audio message is being formed correctly but Florian Grill is going to send me a sample before encryption for a given audio input to check...if we get the same result then it must be something with the encryption/gmac but I'm hoping it's not that bc debugging that could prove challenging.
streetpea commented 2023-10-10 17:55:51 -05:00 (Migrated from github.com)

@jbaiter so Florian Grill helped me check the audio message and the encryption and it appears to be in order but it's still not working so there appears to be something missing but not sure what it is. Florian thinks that should be everything though so it's a bit of a mystery what's going wrong.

@jbaiter so Florian Grill helped me check the audio message and the encryption and it appears to be in order but it's still not working so there appears to be something missing but not sure what it is. Florian thinks that should be everything though so it's a bit of a mystery what's going wrong.
streetpea commented 2023-10-11 23:38:54 -05:00 (Migrated from github.com)

Update: I found the missing message sent over 9296 ... it works now on my computer! I'll push an update with mic support soon (I'll submit it upstream to chiaki and release it for chiaki4deck in the next week or so). Florian Grill was very helpful as well :)

Update: I found the missing message sent over 9296 ... it works now on my computer! I'll push an update with mic support soon (I'll submit it upstream to chiaki and release it for chiaki4deck in the next week or so). Florian Grill was very helpful as well :)
streetpea commented 2023-10-12 17:29:39 -05:00 (Migrated from github.com)

added with 1.4.0 with commit 6fc4b8f6e4

added with 1.4.0 with commit 6fc4b8f6e4aec5a93cc8761ce41f212c8c6813ca
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-streetpea/chiaki-ng#23
No description provided.