File tree Expand file tree Collapse file tree 9 files changed +31
-19
lines changed 
models/spring-ai-openai/src/main/java/org/springframework/ai/openai 
spring-ai-model/src/main/java/org/springframework/ai/audio/tts Expand file tree Collapse file tree 9 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 2929 * 
3030 * @author Ahmed Yousri 
3131 * @since 1.0.0-M1 
32-  * @deprecated Use {@link org.springframework.ai.audio.tts.Speech} from the core package instead.  
33-  * This class will be removed in a future release. 
32+  * @deprecated Use {@link org.springframework.ai.audio.tts.Speech} from the core package 
33+  * instead.  This class will be removed in a future release. 
3434 */ 
3535@ Deprecated 
3636public  class  Speech  implements  ModelResult <byte []> {
Original file line number Diff line number Diff line change 2424 * 
2525 * @author Ahmed Yousri 
2626 * @since 1.0.0-M1 
27-  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechMessage} from the core package instead.  
28-  * This class will be removed in a future release. 
27+  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechMessage} from the 
28+  * core package instead.  This class will be removed in a future release. 
2929 */ 
3030@ Deprecated 
3131public  class  SpeechMessage  {
Original file line number Diff line number Diff line change 2525 * 
2626 * @author Ahmed Yousri 
2727 * @since 1.0.0-M1 
28-  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechModel} from the core package instead.  
29-  * This interface will be removed in a future release. 
28+  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechModel} from the 
29+  * core package instead.  This interface will be removed in a future release. 
3030 */ 
3131@ Deprecated 
3232@ FunctionalInterface 
Original file line number Diff line number Diff line change 2929 * 
3030 * @author Ahmed Yousri 
3131 * @since 1.0.0-M1 
32-  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechPrompt} from the core package instead.  
33-  * This class will be removed in a future release. 
32+  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechPrompt} from the 
33+  * core package instead.  This class will be removed in a future release. 
3434 */ 
3535@ Deprecated 
3636public  class  SpeechPrompt  implements  ModelRequest <SpeechMessage > {
Original file line number Diff line number Diff line change 2828 * 
2929 * @author Ahmed Yousri 
3030 * @since 1.0.0-M1 
31-  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechResponse} from the core package instead.  
32-  * This class will be removed in a future release. 
31+  * @deprecated Use {@link org.springframework.ai.audio.tts.TextToSpeechResponse} from the 
32+  * core package instead.  This class will be removed in a future release. 
3333 */ 
3434@ Deprecated 
3535public  class  SpeechResponse  implements  ModelResponse <Speech > {
Original file line number Diff line number Diff line change 2727 * 
2828 * @author Ahmed Yousri 
2929 * @since 1.0.0-M1 
30-  * @deprecated Use {@link org.springframework.ai.audio.tts.StreamingTextToSpeechModel} from the core package instead.  
31-  * This interface will be removed in a future release. 
30+  * @deprecated Use {@link org.springframework.ai.audio.tts.StreamingTextToSpeechModel} 
31+  * from the core package instead.  This interface will be removed in a future release. 
3232 */ 
3333@ Deprecated 
3434@ FunctionalInterface 
Original file line number Diff line number Diff line change 1616
1717package  org .springframework .ai .openai .metadata .audio ;
1818
19+ import  org .springframework .ai .audio .tts .TextToSpeechResponseMetadata ;
1920import  org .springframework .ai .chat .metadata .EmptyRateLimit ;
2021import  org .springframework .ai .chat .metadata .RateLimit ;
21- import  org .springframework .ai .model .MutableResponseMetadata ;
2222import  org .springframework .ai .openai .api .OpenAiAudioApi ;
2323import  org .springframework .lang .Nullable ;
2424import  org .springframework .util .Assert ;
2929 * @author Ahmed Yousri 
3030 * @see RateLimit 
3131 */ 
32- public  class  OpenAiAudioSpeechResponseMetadata  extends  MutableResponseMetadata  {
32+ public  class  OpenAiAudioSpeechResponseMetadata  extends  TextToSpeechResponseMetadata  {
3333
3434	public  static  final  OpenAiAudioSpeechResponseMetadata  NULL  = new  OpenAiAudioSpeechResponseMetadata () {
3535
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ public class TextToSpeechResponse implements ModelResponse<Speech> {
3131
3232	private  final  List <Speech > results ;
3333
34- 	private  final  ResponseMetadata   metadata ;
34+ 	private  final  TextToSpeechResponseMetadata   textToSpeechResponseMetadata ;
3535
3636	public  TextToSpeechResponse (List <Speech > results ) {
3737		this (results , null );
3838	}
3939
40- 	public  TextToSpeechResponse (List <Speech > results , ResponseMetadata   metadata ) {
40+ 	public  TextToSpeechResponse (List <Speech > results , TextToSpeechResponseMetadata   textToSpeechResponseMetadata ) {
4141		this .results  = results ;
42- 		this .metadata  = metadata ;
42+ 		this .textToSpeechResponseMetadata  = textToSpeechResponseMetadata ;
4343	}
4444
4545	@ Override 
@@ -52,8 +52,8 @@ public Speech getResult() {
5252	}
5353
5454	@ Override 
55- 	public  ResponseMetadata  getMetadata () {
56- 		return  this .metadata ;
55+ 	public  TextToSpeechResponseMetadata  getMetadata () {
56+ 		return  this .textToSpeechResponseMetadata ;
5757	}
5858
5959	@ Override 
Original file line number Diff line number Diff line change 1+ package  org .springframework .ai .audio .tts ;
2+ 
3+ import  org .springframework .ai .model .MutableResponseMetadata ;
4+ 
5+ /** 
6+  * Metadata associated with an audio transcription response. 
7+  * 
8+  * @author Alexandros Pappas 
9+  */ 
10+ public  class  TextToSpeechResponseMetadata  extends  MutableResponseMetadata  {
11+ 
12+ }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments