Voice streaming over a Wi-Fi network


I am working on a project where i need to stream voice from my mobile app to an external speaker which is connected to a raspberry pi. The mobile and the raspberry pi which has an IP assigned to it will be connected to the same network. All i need to do is live stream my voice to the pi’s speaker by giving the IP and port of the pi in the mobile application. Is this even possible using the ionic framework as I’ve almost run out of options.