> For the complete documentation index, see [llms.txt](https://canardoux.gitbook.io/tau/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://canardoux.gitbook.io/tau/doc/pages/tau-api/recorder/recorder_state.md).

# The τ Recorder API

\`recorderState\`, \`isRecording\`, \`isPaused\`, \`isStopped\`.

## `recorderState`, `isRecording`, `isPaused`, `isStopped`

* Dart API: [recorderState](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/recorderState.html)
* Dart API: [isRecording](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isRecording.html)
* Dart API: [isPaused](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isPaused.html)
* Dart API: [isStopped](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isStopped.html)

This four attributs is used when the app wants to get the current Audio State of the recorder.

`recorderState` is an attribut which can have the following values :

* isStopped   /// Recorder is stopped
* isRecording   /// Recorder is recording
* isPaused    /// Recorder is paused
* isRecording is a boolean attribut which is `true` when the recorder is in the "Recording" mode.
* isPaused is a boolean atrribut which  is `true` when the recorder is in the "Paused" mode.
* isStopped is a boolean atrribut which  is `true` when the recorder is in the "Stopped" mode.

*Example:*

[Dart](/tau/doc/pages/tau-api/recorder/recorder_state.md#dart)

[Javascript](/tau/doc/pages/tau-api/recorder/recorder_state.md#javascript)

```

        switch(myRecorder.recorderState)
        {
                case RecorderState.isRecording: doSomething; break;
                case RecorderState.isStopped: doSomething; break;
                case RecorderState.isPaused: doSomething; break;
        }
        ...
        if (myRecorder.isStopped) doSomething;
        if (myRecorder.isRecording) doSomething;
        if (myRecorder.isPaused) doSomething;
```

```

        Lorem ipsum ...
```

\</div>
