# AudioInputEnvironment

    enum AudioInputEnvironment

The user's audio input environment of the device.
- `


  ### [unspecified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/AudioInputTrait/AudioInputEnvironment#/s:15GoogleHomeTypes0A0O15AudioInputTraitV0dE11EnvironmentO11unspecifiedyA2GmF)


  ` The user's audio environment is unspecified.

  #### Declaration

  Swift

      case unspecified

- `


  ### [surroundingUsers](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/AudioInputTrait/AudioInputEnvironment#/s:15GoogleHomeTypes0A0O15AudioInputTraitV0dE11EnvironmentO16surroundingUsersyA2GmF)


  ` The user's audio environment includes surrounding users.

  #### Declaration

  Swift

      case surroundingUsers

- `


  ### [authenticatedUserOnly](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/AudioInputTrait/AudioInputEnvironment#/s:15GoogleHomeTypes0A0O15AudioInputTraitV0dE11EnvironmentO21authenticatedUserOnlyyA2GmF)


  ` The user's audio environment requires privacy.

  #### Declaration

  Swift

      case authenticatedUserOnly

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/AudioInputTrait/AudioInputEnvironment#/s:15GoogleHomeTypes0A0O15AudioInputTraitV0dE11EnvironmentO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |