Class TextToSpeechModelTextContentObservationHandler

java.lang.Object
org.springframework.ai.audio.tts.observation.TextToSpeechModelTextContentObservationHandler
All Implemented Interfaces:
io.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>

public class TextToSpeechModelTextContentObservationHandler extends Object implements io.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>
Handler for emitting the text given to a text-to-speech model to logs. The audio that comes back is never logged.
Since:
2.0.2
Author:
Christian Tzolov
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.observation.ObservationHandler

    io.micrometer.observation.ObservationHandler.AllMatchingCompositeObservationHandler, io.micrometer.observation.ObservationHandler.CompositeObservationHandler, io.micrometer.observation.ObservationHandler.FirstMatchingCompositeObservationHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    supportsContext(io.micrometer.observation.Observation.Context context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.observation.ObservationHandler

    onError, onEvent, onScopeClosed, onScopeOpened, onScopeReset, onStart
  • Constructor Details

    • TextToSpeechModelTextContentObservationHandler

      public TextToSpeechModelTextContentObservationHandler()
  • Method Details