Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Dashscope voice transcription test failed #295

Open
yuluo-yx opened this issue Dec 21, 2024 · 1 comment
Open

bug: Dashscope voice transcription test failed #295

yuluo-yx opened this issue Dec 21, 2024 · 1 comment

Comments

@yuluo-yx
Copy link
Collaborator

resources

image

code

DashScopeAudioTranscriptionModel transcriptionModel = context.getBean(DashScopeAudioTranscriptionModel.class);
Resource audioFile = new ClassPathResource("/speech/jfk.flac");
System.out.println(audioFile);
String response = transcriptionModel.call(new AudioTranscriptionPrompt(audioFile)).getResult().getOutput();
System.out.println(response);
assertThat(response).isNotEmpty();
logger.info("Response: " + response);

logs


com.alibaba.cloud.ai.dashscope.common.DashScopeException: get transcription outcome failed

	at com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.getOutcome(DashScopeAudioTranscriptionApi.java:136)
	at com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioTranscriptionModel.toResponse(DashScopeAudioTranscriptionModel.java:236)
	at com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioTranscriptionModel.call(DashScopeAudioTranscriptionModel.java:132)
	at com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeAutoConfigurationIT.lambda$transcribe$1(DashScopeAutoConfigurationIT.java:83)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.accept(AbstractApplicationContextRunner.java:434)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.consumeAssertableContext(AbstractApplicationContextRunner.java:363)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.lambda$run$0(AbstractApplicationContextRunner.java:341)
	at org.springframework.boot.test.util.TestPropertyValues.lambda$applyToSystemProperties$1(TestPropertyValues.java:174)
	at org.springframework.boot.test.util.TestPropertyValues.applyToSystemProperties(TestPropertyValues.java:188)
	at org.springframework.boot.test.util.TestPropertyValues.applyToSystemProperties(TestPropertyValues.java:173)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.lambda$run$1(AbstractApplicationContextRunner.java:341)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.withContextClassLoader(AbstractApplicationContextRunner.java:369)
	at org.springframework.boot.test.context.runner.AbstractApplicationContextRunner.run(AbstractApplicationContextRunner.java:340)
	at com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeAutoConfigurationIT.transcribe(DashScopeAutoConfigurationIT.java:79)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "this.input" is null
	at java.base/java.net.URI$Parser.parse(URI.java:3165)
	at java.base/java.net.URI.<init>(URI.java:623)
	at com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.getOutcome(DashScopeAudioTranscriptionApi.java:130)
	... 16 more

image

@yuluo-yx
Copy link
Collaborator Author

@kevinlin09 can you take a look it. cc @chickenlj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant