platypush/plugins/sound/__init__.py
def _get_default_device(category):
        """
        Query the default audio devices.

        :param category: Device category to query. Can be either input or output
        :type category: str
        """

        import sounddevice as sd
        return sd.query_hostapis()[0].get('default_' + category.lower() + '_device')

        Query the default audio devices.

        :param category: Device category to query. Can be either input or output
        :type category: str
        
Query the default audio devices.
Query the default audio devices .
def _get_default_device(category):
        import sounddevice as sd
        return sd.query_hostapis()[0].get('default_' + category.lower() + '_device')
def _get_default_device ( category ) : import sounddevice as sd return sd . query_hostapis ( ) [ 0 ] . get ( 'default_' + category . lower ( ) + '_device' )
Query the default audio devices.
Query the default audio devices .
"""
        Query the default audio devices.

        :param category: Device category to query. Can be either input or output
        :type category: str
        """
category
Device category to query. Can be either input or output
Device category to query . Can be either input or output