(self, request: Request, workspace_id: str, application_id: str)
| 456 | CompareConstants.AND), |
| 457 | RoleConstants.WORKSPACE_MANAGE.get_workspace_role()) |
| 458 | def post(self, request: Request, workspace_id: str, application_id: str): |
| 459 | byte_data = ApplicationOperateSerializer( |
| 460 | data={'application_id': application_id, 'workspace_id': workspace_id, |
| 461 | 'user_id': request.user.id}).text_to_speech(request.data) |
| 462 | return HttpResponse(byte_data, status=200, headers={'Content-Type': 'audio/mp3', |
| 463 | 'Content-Disposition': 'attachment; filename="abc.mp3"'}) |
| 464 | |
| 465 | |
| 466 | class PlayDemoText(APIView): |
nothing calls this directly
no test coverage detected