A radio player mobile application to streams audio from Radio Sai Global Harmony

  Flutter App, Music Player

Sai Voice

A radio player which streams audio from Radio Sai Global Harmony.

*Special Thanks to Aman Achutan for the logo

Om Sri Sai Ram pray

Sai Voice is an audio app that streams audio data broadcasted by Radio Sai Global Harmony.

warning Internet is needed for the app to function properly.

*All the data inside the app is taken from radiosai.org

Radio Streams include:

  • Asia Stream
  • Africa Stream
  • America Stream
  • Bhajan Stream
  • Discourse Stream
  • Telugu Stream.

Smooth: The app is built to keep a smooth user experience. One can change the streams they want to listen to with ease by just sliding the panel up and selecting the new stream.

Seamless Listening: It is capable of running in the background until the app is removed from the process. Listen to your favourite radio stream with just one click after opening the app (an option to set the favourite stream at the start of the app)

Media Control: It can handle the audio options from a handset to a headset, from lock screen notifications to earphones button click. It also pauses when another player starts and doesn’t interrupt any incoming notifications.

Dark Theme: The app also comes with dark theme. One can change the theme they want from settings.

Split Screen: The app is suitable for split screen. Operate this app while doing work in a different app.

Schedule: Look at the radio schedule of different streams from within the app (Redirects to the official website).

Sai Inspires: Thought of the day by Sai Inspires is present inside the app. One can read it at any text size they want by zooming in. One can also share the content by clicking the copy icon (copies to clipboard). One can also view and save the image.

Free without ads: The app is free for all and will remain the same further. No ads are shown in the app. This is thanks to Radio Sai Global Harmony for providing the content without any charge. Like the Sai Organization, we believe in selfless service and do not expect anything in return.

Open Source: We believe that there is nothing to hide and like you to experience the bliss of Swamy. So, the source code of the app is open-source and will remain the same in future.

File Permissions: File write permission is requested only to save images from Sai Inspires. One can deny these permissions from the settings.

“Sai Ram, and Happy Listening”

Future Updates

*I cannot guarantee any of the below. But, will try my best to include such features in future releases (if I can)

  • Add android auto support
  • Add google chrome cast support

Radio Player Flow

Stop State -> Play in app screen (user action) -> Play State
Stop State -> Change Radio Stream (user action) -> Changes Radio Stream -> Stop State
Play State -> Change Radio Stream (user action) -> Stop State -> Changes Radio Stream -> Play State
Play State -> Pause in app screen (user action) -> Stop State

Play State -> Pause in notification (user action) -> Pause State
Play State -> Stop in notification (user action) -> Stop State

Motivation

I like to listen to various bhajans which made me fond of radio sai. I’ve installed the app and kept listening to the radio that gave me peace. I felt the application UI/UX was not up to the mark. The audio stops in between and doesn’t handle audio when I receive a call or play another media. That was the start of the idea to build an app that solves these problems. I started to collect resources from where the radio is broadcasted and finally reached the point to have a public release of the app. I referred to the radio sai app and its functionality while building this app.

I feel this app solves the problems that I (and many others) face and would like to share this with all. It’s one’s choice to use whichever app is comfortable

Screenshots

Architecture

Most of the main features use bloc architecture using providers and streams. The usage of this architecture helps the app no to completely refresh but just helpful for updating the needed components smoothly.

lib
├───audio_service   # audio service related task
│   └── notifiers
├───bloc            # business logic files related to screens
│   ├───media
│   ├───radio
│   ├───radio_schedule
│   └───settings
├───constants       # constants
├───helper          # helper classes
├───screens         # all screens
│   ├── audio_archive
│   ├───media
│   ├───media_player
│   ├───radio
│   ├───sai_inspires
│   ├───radio_schedule
│   └───settings
│       └───general
└───widgets         # widgets related to screens
    ├───radio
    └───settings

Above is generated using “tree” command inside lib/

OpenSource Libraries

shared_preferenecs: used to store short data locally like: saving the radio stream while closing the app and displays the same on app start, display the favourite radio stream on app start; save the user preference app theme.

sliding_up_panel: used to select a different radio stream by sliding up the panel.

shimmer: used to show loading progress in the data loading screens

internet_connection_checker: used to detect the internet status of the device

flutter_downloader: used to download files/media from the internet

just_audio & audio_service: the main base of the app helps play the audio seamlessly with media control. Thank you @ryanheise

and many other open-source libraries.

Thanks to the Open Source community for providing such great libraries and framework which was very helpful in building the application.