示例#1
0
文件: pyaudio.py 项目: FOSSRIT/PyTalk
    def is_stopped(self):
        """
        Returns whether the stream is stopped.

        :rtype: bool
        """

        return pa.is_stream_stopped(self._stream)
示例#2
0
文件: pyaudio.py 项目: chai41104/NLP
    def is_stopped(self):
        """
        Returns whether the stream is stopped.

        :rtype: bool
        """

        return pa.is_stream_stopped(self._stream)
示例#3
0
 def close(self):
     if self._stream is not None:
         try:
             if not pa.is_stream_stopped(self._stream):
                 pa.stop_stream(self._stream)
         finally:
             pa.close(self._stream)
             self._stream = None