func setTranscriber() async {
   let locale = Locale.current
   transcriber = DictationTranscriber(locale: locale, preset: .progressiveShortDictation)

   if let transcriber = transcriber {
      analyzer = SpeechAnalyzer(modules: [transcriber])
      analyzerFormat = await SpeechAnalyzer.bestAvailableAudioFormat(compatibleWith: [transcriber])
      (inputSequence, inputBuilder) = AsyncStream<AnalyzerInput>.makeStream()

      if let inputSequence = inputSequence {
         recognizerTask = Task {
            do {
               for try await response in transcriber.results {
                  if response.isFinal {
                     finalText += response.text
                     partialText = ""
                  } else {
                     partialText = response.text
                     partialText.foregroundColor = .blue.opacity(0.6)
                  }
               }
            } catch {
               finalText = AttributedString("Error \(error)")
            }
         }
         do {
            try await analyzer?.start(inputSequence: inputSequence)
         } catch {
            finalText = AttributedString("Error \(error)")
         }
      }
   }
}